aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-06-30 01:30:05 +0800
committerzelig <viktor.tron@gmail.com>2014-06-30 01:30:05 +0800
commitdabaa4cce01586fd8b1b9314073a1d26f35355c8 (patch)
treefff48b2c62a1d717a7d95ffb99e9eb1d99dbf7bb /ethchain/state.go
parent707d413761927f5ad95298e666e297b820ad0901 (diff)
downloaddexon-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.gz
dexon-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.zst
dexon-dabaa4cce01586fd8b1b9314073a1d26f35355c8.zip
change all modified calls to ethtrie, ethutil and ethcrypto functions
Diffstat (limited to 'ethchain/state.go')
-rw-r--r--ethchain/state.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethchain/state.go b/ethchain/state.go
index 4c66a973e..dc2d3c73b 100644
--- a/ethchain/state.go
+++ b/ethchain/state.go
@@ -1,6 +1,7 @@
package ethchain
import (
+ "github.com/ethereum/eth-go/ethcrypto"
"github.com/ethereum/eth-go/ethtrie"
"github.com/ethereum/eth-go/ethutil"
"math/big"
@@ -74,7 +75,7 @@ func (s *State) Purge() int {
return s.trie.NewIterator().Purge()
}
-func (s *State) EachStorage(cb ethutil.EachCallback) {
+func (s *State) EachStorage(cb ethtrie.EachCallback) {
it := s.trie.NewIterator()
it.Each(cb)
}
@@ -92,7 +93,7 @@ func (self *State) UpdateStateObject(stateObject *StateObject) {
self.stateObjects[string(addr)] = stateObject
}
- ethutil.Config.Db.Put(ethutil.Sha3Bin(stateObject.Script()), stateObject.Script())
+ ethutil.Config.Db.Put(ethcrypto.Sha3Bin(stateObject.Script()), stateObject.Script())
self.trie.Update(string(addr), string(stateObject.RlpEncode()))