aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-06-29 23:26:58 +0800
committerzelig <viktor.tron@gmail.com>2014-06-29 23:26:58 +0800
commit707d413761927f5ad95298e666e297b820ad0901 (patch)
tree347ffb4f9e1c6694cf1d2b1d5892e297c98d2e94 /ethchain
parent4be3521727698141512eb6454121302bd3b9cc6d (diff)
downloaddexon-707d413761927f5ad95298e666e297b820ad0901.tar.gz
dexon-707d413761927f5ad95298e666e297b820ad0901.tar.zst
dexon-707d413761927f5ad95298e666e297b820ad0901.zip
refactor ethutil/trie to ethtrie
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/state.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethchain/state.go b/ethchain/state.go
index e28b91909..4c66a973e 100644
--- a/ethchain/state.go
+++ b/ethchain/state.go
@@ -1,6 +1,7 @@
package ethchain
import (
+ "github.com/ethereum/eth-go/ethtrie"
"github.com/ethereum/eth-go/ethutil"
"math/big"
)
@@ -12,7 +13,7 @@ import (
// * Accounts
type State struct {
// The trie for this structure
- trie *ethutil.Trie
+ trie *ethtrie.Trie
stateObjects map[string]*StateObject
@@ -20,7 +21,7 @@ type State struct {
}
// Create a new state from a given trie
-func NewState(trie *ethutil.Trie) *State {
+func NewState(trie *ethtrie.Trie) *State {
return &State{trie: trie, stateObjects: make(map[string]*StateObject), manifest: NewManifest()}
}