diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-12 08:36:36 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-12 08:36:36 +0800 |
commit | 60cdb1148c404218846fd39331690658168f4e04 (patch) | |
tree | 229e68d7dfdaccb12e0b6b9ff19c5c14b9f9c603 /chain/block.go | |
parent | 9bb1ac7564ff0588f33a1eb43e76f40664d9e527 (diff) | |
download | dexon-60cdb1148c404218846fd39331690658168f4e04.tar dexon-60cdb1148c404218846fd39331690658168f4e04.tar.gz dexon-60cdb1148c404218846fd39331690658168f4e04.tar.bz2 dexon-60cdb1148c404218846fd39331690658168f4e04.tar.lz dexon-60cdb1148c404218846fd39331690658168f4e04.tar.xz dexon-60cdb1148c404218846fd39331690658168f4e04.tar.zst dexon-60cdb1148c404218846fd39331690658168f4e04.zip |
Transaction execution fixes
Diffstat (limited to 'chain/block.go')
-rw-r--r-- | chain/block.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chain/block.go b/chain/block.go index 16975a2fe..23a7c63a2 100644 --- a/chain/block.go +++ b/chain/block.go @@ -319,8 +319,8 @@ func (block *Block) Trie() *trie.Trie { return block.state.Trie } -func (block *Block) GetRoot() interface{} { - return block.state.Trie.Root +func (block *Block) Root() interface{} { + return block.state.Root() } func (block *Block) Diff() *big.Int { @@ -340,7 +340,7 @@ func (block *Block) miningHeader() []interface{} { // Coinbase address block.Coinbase, // root state - block.state.Trie.Root, + block.Root(), // tx root block.TxSha, // Sha of tx @@ -393,7 +393,7 @@ func (block *Block) String() string { block.PrevHash, block.UncleSha, block.Coinbase, - block.state.Trie.Root, + block.Root(), block.TxSha, block.ReceiptSha, block.LogsBloom, |