mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
TxLookup: don't fail if body not found
This commit is contained in:
parent
cc343ceda2
commit
13f782cef7
@ -121,8 +121,9 @@ func txnLookupTransform(logPrefix string, tx kv.RwTx, blockFrom, blockTo uint64,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if body == nil {
|
||||
return fmt.Errorf("transform: empty block body %d, hash %x", blocknum, v)
|
||||
if body == nil { // tolerate such an error, because likely it's corner-case - and not critical one
|
||||
log.Warn(fmt.Sprintf("[%s] transform: empty block body %d, hash %x", logPrefix, blocknum, v))
|
||||
return nil
|
||||
}
|
||||
|
||||
blockNumBytes := bigNum.SetUint64(blocknum).Bytes()
|
||||
|
Loading…
Reference in New Issue
Block a user