mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
fix: error propagation in db layer of zktrie (#238)
* fix error propagation in db layer of zktrie * goimports fixing
This commit is contained in:
parent
018c2cca43
commit
29e450264c
1 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,8 @@ import (
|
|||
|
||||
"github.com/syndtr/goleveldb/leveldb"
|
||||
|
||||
zktrie "github.com/scroll-tech/zktrie/trie"
|
||||
|
||||
"github.com/scroll-tech/go-ethereum/common"
|
||||
"github.com/scroll-tech/go-ethereum/ethdb"
|
||||
)
|
||||
|
|
@ -53,7 +55,7 @@ func (l *ZktrieDatabase) Get(key []byte) ([]byte, error) {
|
|||
|
||||
v, err := l.db.diskdb.Get(concatKey)
|
||||
if err == leveldb.ErrNotFound {
|
||||
return nil, ErrNotFound
|
||||
return nil, zktrie.ErrKeyNotFound
|
||||
}
|
||||
if l.db.cleans != nil {
|
||||
l.db.cleans.Set(concatKey[:], v)
|
||||
|
|
|
|||
Loading…
Reference in a new issue