Skip to content

Commit f4aefdc

Browse files
authored
Fix new_heads Events Emission on Block Forks (#9738)
new_heads events were not correctly emitted during block forks. This fix ensures accurate event generation and emission in fork scenarios.
1 parent b682aa1 commit f4aefdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/stagedsync/stage_finish.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ func NotifyNewHeaders(ctx context.Context, finishStageBeforeSync uint64, finishS
143143
heightSpan = 1024
144144
}
145145
notifyFrom = finishStageAfterSync - heightSpan
146+
notifyFrom++
146147
}
147-
notifyFrom++
148148

149149
var notifyTo = notifyFrom
150150
var notifyToHash libcommon.Hash

0 commit comments

Comments
 (0)