core, ethdb, trie: validate database errors

This commit is contained in:
obscuren
2015-06-20 20:31:11 +02:00
parent 3deded28a5
commit c590b505ed
5 changed files with 25 additions and 9 deletions

View File

@ -42,8 +42,8 @@ func NewLDBDatabase(file string) (*LDBDatabase, error) {
}
// Put puts the given key / value to the queue
func (self *LDBDatabase) Put(key []byte, value []byte) {
self.db.Put(key, rle.Compress(value), nil)
func (self *LDBDatabase) Put(key []byte, value []byte) error {
return self.db.Put(key, rle.Compress(value), nil)
}
// Get returns the given key if it's present.