Prevent deletion of extra block worth of tx lookup records when pruning (#4232)
* Print
* Prevent underflow, return 0 block if tx lookup failed
* Return nil receipt for 0 block
* Update to main erigon-lib
* Fix other places
* Fix other places
* Comment
Co-authored-by:
Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Showing
- cmd/rpcdaemon/commands/eth_receipts.go 5 additions, 0 deletionscmd/rpcdaemon/commands/eth_receipts.go
- eth/stagedsync/stage_blockhashes.go 2 additions, 3 deletionseth/stagedsync/stage_blockhashes.go
- eth/stagedsync/stage_txlookup.go 4 additions, 2 deletionseth/stagedsync/stage_txlookup.go
- ethdb/privateapi/ethbackend.go 2 additions, 1 deletionethdb/privateapi/ethbackend.go
- go.mod 1 addition, 1 deletiongo.mod
- go.sum 2 additions, 2 deletionsgo.sum
- turbo/snapshotsync/block_snapshots.go 4 additions, 0 deletionsturbo/snapshotsync/block_snapshots.go
Loading
Please register or sign in to comment