-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not double-check transaction effects when catching up to checkpoint (
#4178) When syncing to checkpoint we download effects and insert them in DB. If this fails we abort checkpoint sync process. As such catching up to check point does not need to double-check that just inserted effects exist in DB, so this check can be skipped in this particular place. Other places where new checkpoint is set still perform the check. This will fix frequent "Checkpoint blocked by pending certificates" that we can see in devnet validator logs. In fact, currently any attempt to catch up to checkpoint by validator will fail first with this error and only will succeed on second attempt, this PR fixed this unfortunate behaviour. This will also unblock full node being able to catch up to checkpoint during startup (in the future PR). This PR is somewhat related to the #4168 - we remove redundant check when catching up to checkpoint. We still need another PR for that issue to check effects instead of batch service inclusion for other use cases.
- Loading branch information
Showing
2 changed files
with
15 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters