Skip to content

Commit

Permalink
StagedSync: fix canRunCycleInOneTransaction logic (#7713)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Jun 12, 2023
1 parent 29f8e97 commit 048fe49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo/stages/stageloop.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func StageLoopStep(ctx context.Context, db kv.RwDB, sync *stagedsync.Sync, initi
}
// 2 corner-cases: when sync with --snapshots=false and when executed only blocks from snapshots (in this case all stages progress is equal and > 0, but node is not synced)
isSynced := finishProgressBefore > 0 && finishProgressBefore > blocksInSnapshots && finishProgressBefore == headersProgressBefore
canRunCycleInOneTransaction := !isSynced
canRunCycleInOneTransaction := isSynced

// Main steps:
// - process new blocks
Expand Down

0 comments on commit 048fe49

Please sign in to comment.