diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2014-11-27 20:23:31 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2014-11-27 20:23:31 +0800 |
commit | ef7961b7d27be930a4d9dc81527a55497d3dea2e (patch) | |
tree | 5746b715b1b66c5767779e2e4ca66be345333e13 /ethdb | |
parent | c17a3cb0ceec44c10bc84d05f0d81f08894c792c (diff) | |
parent | 8cf9ed0ea588e97f2baf0f834248727e8fbca18f (diff) | |
download | dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar.gz dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar.bz2 dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar.lz dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar.xz dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.tar.zst dexon-ef7961b7d27be930a4d9dc81527a55497d3dea2e.zip |
Merge pull request #194 from ethereum/poc8
Update tests branch to PoC8
Diffstat (limited to 'ethdb')
-rw-r--r-- | ethdb/memory_database.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go index 459373eea..48aa830e7 100644 --- a/ethdb/memory_database.go +++ b/ethdb/memory_database.go @@ -23,6 +23,10 @@ func (db *MemDatabase) Put(key []byte, value []byte) { db.db[string(key)] = value } +func (db *MemDatabase) Set(key []byte, value []byte) { + db.Put(key, value) +} + func (db *MemDatabase) Get(key []byte) ([]byte, error) { return db.db[string(key)], nil } |