diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-21 02:31:11 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-21 22:59:15 +0800 |
commit | c590b505ed92957baf2ab4baa1788c6b0ec862cc (patch) | |
tree | 473ddb052798c30a21c05abef4764bccf4ab4e0a /ethdb/database.go | |
parent | 3deded28a50398b8ce108c72f27ea861c1bce178 (diff) | |
download | go-tangerine-c590b505ed92957baf2ab4baa1788c6b0ec862cc.tar.gz go-tangerine-c590b505ed92957baf2ab4baa1788c6b0ec862cc.tar.zst go-tangerine-c590b505ed92957baf2ab4baa1788c6b0ec862cc.zip |
core, ethdb, trie: validate database errors
Diffstat (limited to 'ethdb/database.go')
-rw-r--r-- | ethdb/database.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethdb/database.go b/ethdb/database.go index 019645ced..5faf8c4e0 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -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. |