diff options
author | Felix Lange <fjl@twurst.com> | 2015-12-11 08:33:45 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-12-18 19:09:10 +0800 |
commit | e6fb69296e647ff305e5d9df059e5aa956303538 (patch) | |
tree | 4af2d5237abf01ebe7ab35825266775aa7f76400 /ethdb | |
parent | 1b89bd5d269d2d85a7c72067e18212135d8757f9 (diff) | |
download | go-tangerine-e6fb69296e647ff305e5d9df059e5aa956303538.tar go-tangerine-e6fb69296e647ff305e5d9df059e5aa956303538.tar.gz go-tangerine-e6fb69296e647ff305e5d9df059e5aa956303538.tar.bz2 go-tangerine-e6fb69296e647ff305e5d9df059e5aa956303538.tar.lz go-tangerine-e6fb69296e647ff305e5d9df059e5aa956303538.tar.xz go-tangerine-e6fb69296e647ff305e5d9df059e5aa956303538.tar.zst go-tangerine-e6fb69296e647ff305e5d9df059e5aa956303538.zip |
common: remove old RLP implementation, Value and ExtPackage
In order to make this happen, kill all remaining trivial uses of
common/{rlp,value}.go. The non-trivial ones have been updated earlier.
Diffstat (limited to 'ethdb')
-rw-r--r-- | ethdb/memory_database.go | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go index 01273b9db..45423ed73 100644 --- a/ethdb/memory_database.go +++ b/ethdb/memory_database.go @@ -18,7 +18,6 @@ package ethdb import ( "errors" - "fmt" "sync" "github.com/ethereum/go-ethereum/common" @@ -90,27 +89,7 @@ func (db *MemDatabase) Delete(key []byte) error { return nil } -func (db *MemDatabase) Print() { - db.lock.RLock() - defer db.lock.RUnlock() - - for key, val := range db.db { - fmt.Printf("%x(%d): ", key, len(key)) - node := common.NewValueFromBytes(val) - fmt.Printf("%q\n", node.Val) - } -} - -func (db *MemDatabase) Close() { -} - -func (db *MemDatabase) LastKnownTD() []byte { - data, _ := db.Get([]byte("LastKnownTotalDifficulty")) - if len(data) == 0 || data == nil { - data = []byte{0x0} - } - return data -} +func (db *MemDatabase) Close() {} func (db *MemDatabase) NewBatch() Batch { return &memBatch{db: db} |