mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-11 05:20:05 +00:00
pass deleted code to collector (#718)
This commit is contained in:
parent
d3ede58ff0
commit
8363cb0535
@ -314,8 +314,8 @@ func getCodeUnwindExtractFunc(db ethdb.Getter) etl.ExtractFunc {
|
|||||||
newK := dbutils.PlainGenerateStoragePrefix(k, a.Incarnation)
|
newK := dbutils.PlainGenerateStoragePrefix(k, a.Incarnation)
|
||||||
var codeHash []byte
|
var codeHash []byte
|
||||||
codeHash, err = db.Get(dbutils.PlainContractCodeBucket, newK)
|
codeHash, err = db.Get(dbutils.PlainContractCodeBucket, newK)
|
||||||
if err != nil {
|
if err != nil && !errors.Is(err, ethdb.ErrKeyNotFound) {
|
||||||
return err
|
return fmt.Errorf("getCodeUnwindExtractFunc: %w, key=%x", err, newK)
|
||||||
}
|
}
|
||||||
return next(k, newK, codeHash)
|
return next(k, newK, codeHash)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user