diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-04 16:42:40 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-04 16:42:40 +0800 |
commit | 03ce15df4c7ef51d4373233ab5c3766282b31771 (patch) | |
tree | 8e2487308508223b47b9a91a6eaa53e657a89312 /ethchain/block.go | |
parent | 3debeb7236d2c8474fa9049cc91dc26bf1040b3f (diff) | |
download | dexon-03ce15df4c7ef51d4373233ab5c3766282b31771.tar.gz dexon-03ce15df4c7ef51d4373233ab5c3766282b31771.tar.zst dexon-03ce15df4c7ef51d4373233ab5c3766282b31771.zip |
ethstate.NewState => ethstate.New
Diffstat (limited to 'ethchain/block.go')
-rw-r--r-- | ethchain/block.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ethchain/block.go b/ethchain/block.go index e4486f8e4..321af6183 100644 --- a/ethchain/block.go +++ b/ethchain/block.go @@ -100,7 +100,7 @@ func CreateBlock(root interface{}, } block.SetUncles([]*Block{}) - block.state = ethstate.NewState(ethtrie.New(ethutil.Config.Db, root)) + block.state = ethstate.New(ethtrie.New(ethutil.Config.Db, root)) return block } @@ -265,7 +265,7 @@ func (block *Block) RlpValueDecode(decoder *ethutil.Value) { block.PrevHash = header.Get(0).Bytes() block.UncleSha = header.Get(1).Bytes() block.Coinbase = header.Get(2).Bytes() - block.state = ethstate.NewState(ethtrie.New(ethutil.Config.Db, header.Get(3).Val)) + block.state = ethstate.New(ethtrie.New(ethutil.Config.Db, header.Get(3).Val)) block.TxSha = header.Get(4).Bytes() block.Difficulty = header.Get(5).BigInt() block.Number = header.Get(6).BigInt() @@ -307,7 +307,7 @@ func NewUncleBlockFromValue(header *ethutil.Value) *Block { block.PrevHash = header.Get(0).Bytes() block.UncleSha = header.Get(1).Bytes() block.Coinbase = header.Get(2).Bytes() - block.state = ethstate.NewState(ethtrie.New(ethutil.Config.Db, header.Get(3).Val)) + block.state = ethstate.New(ethtrie.New(ethutil.Config.Db, header.Get(3).Val)) block.TxSha = header.Get(4).Bytes() block.Difficulty = header.Get(5).BigInt() block.Number = header.Get(6).BigInt() |