From 3b5cfa362115cf76ef6f85ad26c7595db18035af Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Tue, 13 Feb 2024 17:45:03 +0700 Subject: [PATCH] bor event reader: stop snaps iteration earlier (#9425) --- turbo/snapshotsync/freezeblocks/block_reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbo/snapshotsync/freezeblocks/block_reader.go b/turbo/snapshotsync/freezeblocks/block_reader.go index b6d1faad3b2..66cf9c0eab3 100644 --- a/turbo/snapshotsync/freezeblocks/block_reader.go +++ b/turbo/snapshotsync/freezeblocks/block_reader.go @@ -1165,7 +1165,7 @@ func (r *BlockReader) EventsByBlock(ctx context.Context, tx kv.Tx, hash common.H continue } if sn.to <= blockHeight { - continue + break } idxBorTxnHash := sn.Index()