aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-04 16:42:40 +0800
committerobscuren <geffobscura@gmail.com>2014-08-04 16:42:40 +0800
commit03ce15df4c7ef51d4373233ab5c3766282b31771 (patch)
tree8e2487308508223b47b9a91a6eaa53e657a89312 /ethchain
parent3debeb7236d2c8474fa9049cc91dc26bf1040b3f (diff)
downloadgo-tangerine-03ce15df4c7ef51d4373233ab5c3766282b31771.tar
go-tangerine-03ce15df4c7ef51d4373233ab5c3766282b31771.tar.gz
go-tangerine-03ce15df4c7ef51d4373233ab5c3766282b31771.tar.bz2
go-tangerine-03ce15df4c7ef51d4373233ab5c3766282b31771.tar.lz
go-tangerine-03ce15df4c7ef51d4373233ab5c3766282b31771.tar.xz
go-tangerine-03ce15df4c7ef51d4373233ab5c3766282b31771.tar.zst
go-tangerine-03ce15df4c7ef51d4373233ab5c3766282b31771.zip
ethstate.NewState => ethstate.New
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/block.go6
-rw-r--r--ethchain/state_transition.go2
2 files changed, 4 insertions, 4 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()
diff --git a/ethchain/state_transition.go b/ethchain/state_transition.go
index 8f1561c00..dfcbfcc04 100644
--- a/ethchain/state_transition.go
+++ b/ethchain/state_transition.go
@@ -278,7 +278,7 @@ func MakeContract(tx *Transaction, state *ethstate.State) *ethstate.StateObject
contract := state.NewStateObject(addr)
contract.InitCode = tx.Data
- contract.State = ethstate.NewState(ethtrie.New(ethutil.Config.Db, ""))
+ contract.State = ethstate.New(ethtrie.New(ethutil.Config.Db, ""))
return contract
}