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

RpcDaemon doesn't see recently retired blocks #9318

Merged
merged 17 commits into from
Jan 29, 2024
Prev Previous commit
Next Next commit
save
  • Loading branch information
AskAlexSharov committed Jan 26, 2024
commit 07ef42b499b2622fe198131d9bde7a3e5b97eee0
2 changes: 1 addition & 1 deletion eth/integrity/snap_blocks_read.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func SnapBlocksRead(db kv.RoDB, blockReader services.FullBlockReader, ctx contex
defer logEvery.Stop()

maxBlockNum := blockReader.Snapshots().SegmentsMax()
for i := uint64(0); i < maxBlockNum; i += 10_000 {
for i := uint64(18998600); i < maxBlockNum; i += 1 {
if err := db.View(ctx, func(tx kv.Tx) error {
b, err := blockReader.BlockByNumber(ctx, tx, i)
if err != nil {
Expand Down
Loading