-
Notifications
You must be signed in to change notification settings - Fork 75
ETCM-645: Add it-test for checkpointing #931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -329,7 +329,7 @@ class BlockImporter( | |
Right(Nil) | ||
case UnknownBranch => | ||
val currentBlock = blocks.head.number.min(startingBlockNumber) | ||
val goingBackTo = currentBlock - syncConfig.branchResolutionRequestSize | ||
val goingBackTo = (currentBlock - syncConfig.branchResolutionRequestSize).max(0) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this change for? Reverting this doesn't seem to break anything. (Also goes for the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. before the change val goingBackTo could be set to negative numbers, this shouldn't be the case as the resolution of the branches can't start from before the genesis block. I actually had this happening during tests -> hence the fix. As for branchResolutionRequestSize values changes in tests, I just aligned them with the value we use in application.conf. |
||
val msg = s"Unknown branch, going back to block nr $goingBackTo in order to resolve branches" | ||
|
||
log.info(msg) | ||
|
Uh oh!
There was an error while loading. Please reload this page.