Added delete to database interfaces

This commit is contained in:
obscuren
2014-02-24 12:12:01 +01:00
parent 5971c82094
commit 55c1c220d0
3 changed files with 11 additions and 0 deletions

View File

@ -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)