aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-15 08:34:18 +0800
committerobscuren <geffobscura@gmail.com>2014-02-15 08:34:18 +0800
commit73fd358d940418b15dec850f50407bd2e504d88c (patch)
treea1202689cf2e715fef9c31fa17ca4ad241de1d0f /ethdb
parentf247f0c518c6e848061462e3234f32cc7d854a46 (diff)
downloaddexon-73fd358d940418b15dec850f50407bd2e504d88c.tar
dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.gz
dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.bz2
dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.lz
dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.xz
dexon-73fd358d940418b15dec850f50407bd2e504d88c.tar.zst
dexon-73fd358d940418b15dec850f50407bd2e504d88c.zip
Removed RlpValue in favour of Value
Diffstat (limited to 'ethdb')
-rw-r--r--ethdb/memory_database.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go
index 656de9f0e..cd9f24000 100644
--- a/ethdb/memory_database.go
+++ b/ethdb/memory_database.go
@@ -29,9 +29,8 @@ func (db *MemDatabase) Get(key []byte) ([]byte, error) {
func (db *MemDatabase) Print() {
for key, val := range db.db {
fmt.Printf("%x(%d): ", key, len(key))
- dec, _ := ethutil.Decode(val, 0)
- node := ethutil.Conv(dec)
- fmt.Printf("%q\n", node.AsRaw())
+ node := ethutil.NewValueFromBytes(val)
+ fmt.Printf("%q\n", node.Interface())
}
}