aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb/database.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-23 22:18:48 +0800
committerobscuren <geffobscura@gmail.com>2014-12-23 22:18:48 +0800
commit34f72ddb3d5a01d6c45c75604bc030c287d51fb2 (patch)
treed5a1b7e9de4e511b14671efb3eac6bd48eb7c775 /ethdb/database.go
parent1382e8d84bf039e8f5588f07029255d0f901cf44 (diff)
downloaddexon-34f72ddb3d5a01d6c45c75604bc030c287d51fb2.tar.gz
dexon-34f72ddb3d5a01d6c45c75604bc030c287d51fb2.tar.zst
dexon-34f72ddb3d5a01d6c45c75604bc030c287d51fb2.zip
Decode from stream directly
Diffstat (limited to 'ethdb/database.go')
-rw-r--r--ethdb/database.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethdb/database.go b/ethdb/database.go
index 19aa83466..47ddec9c0 100644
--- a/ethdb/database.go
+++ b/ethdb/database.go
@@ -71,6 +71,10 @@ func (self *LDBDatabase) NewIterator() iterator.Iterator {
return self.db.NewIterator(nil, nil)
}
+func (self *LDBDatabase) Write(batch *leveldb.Batch) error {
+ return self.db.Write(batch, nil)
+}
+
func (self *LDBDatabase) Close() {
// Close the leveldb database
self.db.Close()