aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-14 19:54:40 +0800
committerobscuren <geffobscura@gmail.com>2014-05-14 19:54:40 +0800
commitf4fa0d48cb10f925908062357be965c54370cba9 (patch)
tree4b274e1a6a25fb6a468d52a2e1e67775b42d0a0f /ethdb
parent0512113bdd5cc55ae35abd442b668ab5ed7a116b (diff)
downloadgo-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.gz
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.bz2
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.lz
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.xz
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.zst
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.zip
Moved keyring to ethutil & removed old methods. Implements #20
Diffstat (limited to 'ethdb')
-rw-r--r--ethdb/database.go2
-rw-r--r--ethdb/memory_database.go2
2 files changed, 4 insertions, 0 deletions
diff --git a/ethdb/database.go b/ethdb/database.go
index 3dbff36de..09e9d8c7d 100644
--- a/ethdb/database.go
+++ b/ethdb/database.go
@@ -54,11 +54,13 @@ 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
diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go
index b0fa64ed7..1e9d2899a 100644
--- a/ethdb/memory_database.go
+++ b/ethdb/memory_database.go
@@ -26,11 +26,13 @@ func (db *MemDatabase) Get(key []byte) ([]byte, error) {
return db.db[string(key)], nil
}
+/*
func (db *MemDatabase) GetKeys() []*ethutil.Key {
data, _ := db.Get([]byte("KeyRing"))
return []*ethutil.Key{ethutil.NewKeyFromBytes(data)}
}
+*/
func (db *MemDatabase) Delete(key []byte) error {
delete(db.db, string(key))