diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-24 18:04:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-24 18:04:15 +0800 |
commit | 32d125131f602d63f66ee7eb09439074f0b94a91 (patch) | |
tree | de8cdb558d390f8200962af2d24d4402b6762409 /ethchain/block_chain.go | |
parent | 958b482ada677028e11698c219ed5b1e70b224e6 (diff) | |
download | go-tangerine-32d125131f602d63f66ee7eb09439074f0b94a91.tar go-tangerine-32d125131f602d63f66ee7eb09439074f0b94a91.tar.gz go-tangerine-32d125131f602d63f66ee7eb09439074f0b94a91.tar.bz2 go-tangerine-32d125131f602d63f66ee7eb09439074f0b94a91.tar.lz go-tangerine-32d125131f602d63f66ee7eb09439074f0b94a91.tar.xz go-tangerine-32d125131f602d63f66ee7eb09439074f0b94a91.tar.zst go-tangerine-32d125131f602d63f66ee7eb09439074f0b94a91.zip |
Refactored to new state and vm
Diffstat (limited to 'ethchain/block_chain.go')
-rw-r--r-- | ethchain/block_chain.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/block_chain.go b/ethchain/block_chain.go index f72a77706..1a2662787 100644 --- a/ethchain/block_chain.go +++ b/ethchain/block_chain.go @@ -44,7 +44,7 @@ func (bc *BlockChain) NewBlock(coinbase []byte) *Block { hash := ZeroHash256 if bc.CurrentBlock != nil { - root = bc.CurrentBlock.state.trie.Root + root = bc.CurrentBlock.state.Trie.Root hash = bc.LastBlockHash lastBlockTime = bc.CurrentBlock.Time } @@ -297,7 +297,7 @@ func (bc *BlockChain) setLastBlock() { } else { AddTestNetFunds(bc.genesisBlock) - bc.genesisBlock.state.trie.Sync() + bc.genesisBlock.state.Trie.Sync() // Prepare the genesis block bc.Add(bc.genesisBlock) |