diff options
Diffstat (limited to 'ethtrie')
-rw-r--r-- | ethtrie/trie.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ethtrie/trie.go b/ethtrie/trie.go index 6db25db05..4a6613b9d 100644 --- a/ethtrie/trie.go +++ b/ethtrie/trie.go @@ -5,7 +5,7 @@ import ( "fmt" "sync" - "github.com/ethereum/go-ethereum/ethcrypto" + "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethutil" ) @@ -64,7 +64,7 @@ func (cache *Cache) PutValue(v interface{}, force bool) interface{} { enc := value.Encode() if len(enc) >= 32 || force { - sha := ethcrypto.Sha3(enc) + sha := crypto.Sha3(enc) cache.nodes[string(sha)] = NewNode(sha, value, true) cache.IsDirty = true @@ -178,7 +178,7 @@ func (self *Trie) setRoot(root interface{}) { switch t := root.(type) { case string: if t == "" { - root = ethcrypto.Sha3([]byte("")) + root = crypto.Sha3([]byte("")) } self.Root = root case []byte: |