Skip to content

Commit 8259581

Browse files
Switch order of condition checks in SyncLoop
1 parent bdabb00 commit 8259581

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

block/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func (m *Manager) SyncLoop(ctx context.Context, cancel context.CancelFunc) {
315315
"daHeight", daHeight,
316316
"hash", blockHash,
317317
)
318-
if m.blockCache.isSeen(blockHash) || blockHeight <= m.store.Height() {
318+
if blockHeight <= m.store.Height() || m.blockCache.isSeen(blockHash) {
319319
m.logger.Debug("block already seen", "height", blockHeight, "block hash", blockHash)
320320
continue
321321
}

0 commit comments

Comments
 (0)