aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb/database.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-24 19:12:01 +0800
committerobscuren <geffobscura@gmail.com>2014-02-24 19:12:01 +0800
commit55c1c220d07c37610c9aa61c583eccb3c8e3829e (patch)
tree11f135574c13409998ee598f66c02d55a3a45d27 /ethdb/database.go
parent5971c82094b79e7c05bfb652c46fac02381b2816 (diff)
downloadgo-tangerine-55c1c220d07c37610c9aa61c583eccb3c8e3829e.tar
go-tangerine-55c1c220d07c37610c9aa61c583eccb3c8e3829e.tar.gz
go-tangerine-55c1c220d07c37610c9aa61c583eccb3c8e3829e.tar.bz2
go-tangerine-55c1c220d07c37610c9aa61c583eccb3c8e3829e.tar.lz
go-tangerine-55c1c220d07c37610c9aa61c583eccb3c8e3829e.tar.xz
go-tangerine-55c1c220d07c37610c9aa61c583eccb3c8e3829e.tar.zst
go-tangerine-55c1c220d07c37610c9aa61c583eccb3c8e3829e.zip
Added delete to database interfaces
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 76e4b4e4d..1e987920d 100644
--- a/ethdb/database.go
+++ b/ethdb/database.go
@@ -36,6 +36,10 @@ func (db *LDBDatabase) Get(key []byte) ([]byte, error) {
return db.db.Get(key, nil)
}
+func (db *LDBDatabase) Delete(key []byte) error {
+ return db.db.Delete(key, nil)
+}
+
func (db *LDBDatabase) LastKnownTD() []byte {
data, _ := db.db.Get([]byte("LastKnownTotalDifficulty"), nil)