Skip to content

Commit

Permalink
Fix new_heads Events Emission on Block Forks (erigontech#9738)
Browse files Browse the repository at this point in the history
new_heads events were not correctly emitted during block forks. This fix
ensures accurate event generation and emission in fork scenarios.
  • Loading branch information
indanielo authored Mar 22, 2024
1 parent b682aa1 commit f4aefdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/stagedsync/stage_finish.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ func NotifyNewHeaders(ctx context.Context, finishStageBeforeSync uint64, finishS
heightSpan = 1024
}
notifyFrom = finishStageAfterSync - heightSpan
notifyFrom++
}
notifyFrom++

var notifyTo = notifyFrom
var notifyToHash libcommon.Hash
Expand Down

0 comments on commit f4aefdc

Please sign in to comment.