Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TxLookup fix 2 #3994

Merged
merged 4 commits into from
Apr 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tolerate some fails
  • Loading branch information
Alexey Sharp authored and Alexey Sharp committed Apr 27, 2022
commit ac2358b2db07073cbcc7c061e570bc0f02c07636
4 changes: 2 additions & 2 deletions eth/stagedsync/stage_txlookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ func deleteTxLookupRange(tx kv.RwTx, logPrefix string, blockFrom, blockTo uint64
if body == nil {
if cfg.snapshots != nil && cfg.snapshots.Cfg().Enabled && blocknum <= cfg.snapshots.BlocksAvailable() {
log.Warn("TxLookup pruning, empty block body", "height", blocknum)
} else {
return fmt.Errorf("empty block body %d, hash %x", blocknum, v)
return nil
}
return fmt.Errorf("empty block body %d, hash %x", blocknum, v)
}

for _, txn := range body.Transactions {
Expand Down