diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-23 17:00:33 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-23 17:00:33 +0800 |
commit | 962255b373a0c8d7c2459cb25aaaa0dc4e492ecf (patch) | |
tree | b62cfe7f55aa4b0526c5d5ed718414085cdafb9b /ethdb | |
parent | d9d4f63cd4e3c9388ea8425e9d41f63af030c77c (diff) | |
download | dexon-962255b373a0c8d7c2459cb25aaaa0dc4e492ecf.tar dexon-962255b373a0c8d7c2459cb25aaaa0dc4e492ecf.tar.gz dexon-962255b373a0c8d7c2459cb25aaaa0dc4e492ecf.tar.bz2 dexon-962255b373a0c8d7c2459cb25aaaa0dc4e492ecf.tar.lz dexon-962255b373a0c8d7c2459cb25aaaa0dc4e492ecf.tar.xz dexon-962255b373a0c8d7c2459cb25aaaa0dc4e492ecf.tar.zst dexon-962255b373a0c8d7c2459cb25aaaa0dc4e492ecf.zip |
Removed old code
Diffstat (limited to 'ethdb')
-rw-r--r-- | ethdb/database.go | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/ethdb/database.go b/ethdb/database.go index 09e9d8c7d..e4b069930 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -2,9 +2,10 @@ package ethdb import ( "fmt" + "path" + "github.com/ethereum/eth-go/ethutil" "github.com/syndtr/goleveldb/leveldb" - "path" ) type LDBDatabase struct { @@ -45,7 +46,7 @@ func (db *LDBDatabase) Db() *leveldb.DB { } func (db *LDBDatabase) LastKnownTD() []byte { - data, _ := db.db.Get([]byte("LastKnownTotalDifficulty"), nil) + data, _ := db.db.Get([]byte("LTD"), nil) if len(data) == 0 { data = []byte{0x0} @@ -54,14 +55,6 @@ func (db *LDBDatabase) LastKnownTD() []byte { return data } -/* -func (db *LDBDatabase) GetKeys() []*ethutil.Key { - data, _ := db.Get([]byte("KeyRing")) - - return []*ethutil.Key{ethutil.NewKeyFromBytes(data)} -} -*/ - func (db *LDBDatabase) Close() { // Close the leveldb database db.db.Close() |