aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-28 19:18:41 +0800
committerobscuren <geffobscura@gmail.com>2014-02-28 19:18:41 +0800
commitc0fcefa3a023c643040b3d9e300980bd32c33dff (patch)
tree239b7fc192b42aeb26b7e5e41fefa2e2c1cf2595 /ethdb
parentc9f3d1c00ba70016be4bb871f9ecd50d456c6985 (diff)
downloaddexon-c0fcefa3a023c643040b3d9e300980bd32c33dff.tar.gz
dexon-c0fcefa3a023c643040b3d9e300980bd32c33dff.tar.zst
dexon-c0fcefa3a023c643040b3d9e300980bd32c33dff.zip
Added a GetKeys method to support multiple accounts
Diffstat (limited to 'ethdb')
-rw-r--r--ethdb/memory_database.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go
index 9e91eb7d6..b0fa64ed7 100644
--- a/ethdb/memory_database.go
+++ b/ethdb/memory_database.go
@@ -26,6 +26,12 @@ 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))
ons'>+2 * New MASTER_SITE by the new maintainer.eadler2012-10-201-12/+4 * Deprecated a bunch a ports with no more public distfiles (thanks ehaupt'sbapt2012-09-211-0/+3 * - Fix build with clangmiwi2012-01-291-0/+26 * - Get Rid MD5 supportmiwi2011-03-201-1/+0 * Remove USE_REINPLACE from all categories starting with Eedwin2006-05-071-1/+0 * - Add SHA256pav2005-11-261-0/+1 * Mark uemacs NO_CDROM:kris2004-03-311-0/+2 * SIZEify.trevor2004-01-291-0/+1 * Fix build on gcc-3.3.xmaho2003-08-021-2/+2 * De-pkg-comment.knu2003-02-212-1/+1 * Add MASTER_SITES.naddy2002-10-221-1/+2 * Replace ${PERL} with ${REINPLACE_CMD}ijliao2002-06-211-1/+2 * portname/portversion updatemharo2000-04-141-3/+3