diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-15 08:34:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-15 08:34:18 +0800 |
commit | 73fd358d940418b15dec850f50407bd2e504d88c (patch) | |
tree | a1202689cf2e715fef9c31fa17ca4ad241de1d0f /ethchain/block.go | |
parent | f247f0c518c6e848061462e3234f32cc7d854a46 (diff) | |
download | dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.gz dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.bz2 dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.lz dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.xz dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.zst dexon-73fd358d940418b15dec850f50407bd2e504d88c.zip |
Removed RlpValue in favour of Value
Diffstat (limited to 'ethchain/block.go')
-rw-r--r-- | ethchain/block.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ethchain/block.go b/ethchain/block.go index a7a1f787b..0678f64e2 100644 --- a/ethchain/block.go +++ b/ethchain/block.go @@ -102,7 +102,7 @@ func CreateBlock(root interface{}, // Returns a hash of the block func (block *Block) Hash() []byte { - return ethutil.Sha3Bin(block.RlpValue().Encode()) + return ethutil.Sha3Bin(block.Value().Encode()) } func (block *Block) HashNoNonce() []byte { @@ -261,14 +261,14 @@ func (block *Block) SetTransactions(txs []*Transaction) { block.TxSha = ethutil.Sha3Bin(ethutil.Encode(block.rlpTxs())) } -func (block *Block) RlpValue() *ethutil.RlpValue { - return ethutil.NewRlpValue([]interface{}{block.header(), block.rlpTxs(), block.rlpUncles()}) +func (block *Block) Value() *ethutil.Value { + return ethutil.NewValue([]interface{}{block.header(), block.rlpTxs(), block.rlpUncles()}) } func (block *Block) RlpEncode() []byte { // Encode a slice interface which contains the header and the list of // transactions. - return block.RlpValue().Encode() + return block.Value().Encode() } func (block *Block) RlpDecode(data []byte) { |