aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain/block.go')
-rw-r--r--ethchain/block.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/ethchain/block.go b/ethchain/block.go
index 5e8aca33a..d6ff5ef7e 100644
--- a/ethchain/block.go
+++ b/ethchain/block.go
@@ -144,12 +144,12 @@ func CreateBlock(root interface{},
// Returns a hash of the block
func (block *Block) Hash() ethutil.Bytes {
- return ethcrypto.Sha3Bin(ethutil.NewValue(block.header()).Encode())
- //return ethcrypto.Sha3Bin(block.Value().Encode())
+ return ethcrypto.Sha3(ethutil.NewValue(block.header()).Encode())
+ //return ethcrypto.Sha3(block.Value().Encode())
}
func (block *Block) HashNoNonce() []byte {
- return ethcrypto.Sha3Bin(ethutil.Encode([]interface{}{block.PrevHash,
+ return ethcrypto.Sha3(ethutil.Encode([]interface{}{block.PrevHash,
block.UncleSha, block.Coinbase, block.state.Trie.Root,
block.TxSha, block.Difficulty, block.Number, block.MinGasPrice,
block.GasLimit, block.GasUsed, block.Time, block.Extra}))
@@ -237,7 +237,7 @@ func (block *Block) SetUncles(uncles []*Block) {
block.Uncles = uncles
// Sha of the concatenated uncles
- block.UncleSha = ethcrypto.Sha3Bin(ethutil.Encode(block.rlpUncles()))
+ block.UncleSha = ethcrypto.Sha3(ethutil.Encode(block.rlpUncles()))
}
func (self *Block) SetReceipts(receipts []*Receipt, txs []*Transaction) {