diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-31 21:45:03 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-31 21:45:03 +0800 |
commit | af34749a6b47ff8f9b4cb55d9ea65e1235d63b68 (patch) | |
tree | d7b244bf5076cd6a56df626d97249b3264d92a86 /chain/derive_sha.go | |
parent | af8f5f0b69f1c359991d12c7708804fe8dd1f944 (diff) | |
download | dexon-af34749a6b47ff8f9b4cb55d9ea65e1235d63b68.tar.gz dexon-af34749a6b47ff8f9b4cb55d9ea65e1235d63b68.tar.zst dexon-af34749a6b47ff8f9b4cb55d9ea65e1235d63b68.zip |
ethtrie => trie
Diffstat (limited to 'chain/derive_sha.go')
-rw-r--r-- | chain/derive_sha.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chain/derive_sha.go b/chain/derive_sha.go index 92db90d95..4246aeb02 100644 --- a/chain/derive_sha.go +++ b/chain/derive_sha.go @@ -1,8 +1,8 @@ package chain import ( - "github.com/ethereum/go-ethereum/ethtrie" "github.com/ethereum/go-ethereum/ethutil" + "github.com/ethereum/go-ethereum/trie" ) type DerivableList interface { @@ -11,7 +11,7 @@ type DerivableList interface { } func DeriveSha(list DerivableList) []byte { - trie := ethtrie.New(ethutil.Config.Db, "") + trie := trie.New(ethutil.Config.Db, "") for i := 0; i < list.Len(); i++ { trie.Update(string(ethutil.NewValue(i).Encode()), string(list.GetRlp(i))) } |