diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-16 23:46:29 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-16 23:46:29 +0800 |
commit | 5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb (patch) | |
tree | d5ba6197a8c0c8e36bb92ee9fc8aad717cb2d178 /ethdb/memory_database.go | |
parent | 8393dab470c40678caf36ada82e312d29c4cf5c4 (diff) | |
parent | 22893b7ac925c49168c119f293ea8befc3aff5cc (diff) | |
download | go-tangerine-5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb.tar.gz go-tangerine-5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb.tar.zst go-tangerine-5e7702fd050ed5520a03cc2cfc8b1f45a70f35fb.zip |
Merge remote-tracking branch 'upstream/develop' into frontier/js
Conflicts:
cmd/ethereum/js.go
javascript/types.go
Diffstat (limited to 'ethdb/memory_database.go')
-rw-r--r-- | ethdb/memory_database.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go index 48aa830e7..d914f47f8 100644 --- a/ethdb/memory_database.go +++ b/ethdb/memory_database.go @@ -3,7 +3,7 @@ package ethdb import ( "fmt" - "github.com/ethereum/go-ethereum/ethutil" + "github.com/ethereum/go-ethereum/common" ) /* @@ -32,10 +32,10 @@ func (db *MemDatabase) Get(key []byte) ([]byte, error) { } /* -func (db *MemDatabase) GetKeys() []*ethutil.Key { +func (db *MemDatabase) GetKeys() []*common.Key { data, _ := db.Get([]byte("KeyRing")) - return []*ethutil.Key{ethutil.NewKeyFromBytes(data)} + return []*common.Key{common.NewKeyFromBytes(data)} } */ @@ -48,7 +48,7 @@ func (db *MemDatabase) Delete(key []byte) error { func (db *MemDatabase) Print() { for key, val := range db.db { fmt.Printf("%x(%d): ", key, len(key)) - node := ethutil.NewValueFromBytes(val) + node := common.NewValueFromBytes(val) fmt.Printf("%q\n", node.Interface()) } } |