aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-08 18:47:04 +0800
committerobscuren <geffobscura@gmail.com>2015-01-08 18:47:04 +0800
commitdb4aaedcbdb409e17ea3de161e7b24a80ba0a58c (patch)
tree98a86ccc265ef05913b8e65a1ce2cae9c13ea788 /core
parent982c812e81304cad835796d4fa3d67c8f08141b6 (diff)
downloaddexon-db4aaedcbdb409e17ea3de161e7b24a80ba0a58c.tar.gz
dexon-db4aaedcbdb409e17ea3de161e7b24a80ba0a58c.tar.zst
dexon-db4aaedcbdb409e17ea3de161e7b24a80ba0a58c.zip
Moved ptrie => trie. Removed old trie
Diffstat (limited to 'core')
-rw-r--r--core/types/derive_sha.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/types/derive_sha.go b/core/types/derive_sha.go
index 0e286bd8b..b2c442210 100644
--- a/core/types/derive_sha.go
+++ b/core/types/derive_sha.go
@@ -3,7 +3,7 @@ package types
import (
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/ethutil"
- "github.com/ethereum/go-ethereum/ptrie"
+ "github.com/ethereum/go-ethereum/trie"
)
type DerivableList interface {
@@ -13,7 +13,7 @@ type DerivableList interface {
func DeriveSha(list DerivableList) []byte {
db, _ := ethdb.NewMemDatabase()
- trie := ptrie.New(nil, db)
+ trie := trie.New(nil, db)
for i := 0; i < list.Len(); i++ {
trie.Update(ethutil.Encode(i), list.GetRlp(i))
}