Skip to content
Unverified Commit 8236718e authored by Liu-Cheng Xu's avatar Liu-Cheng Xu Committed by GitHub
Browse files

Fix edge case where state sync is not triggered (#5635)

This PR addresses an issue where state sync may fail to start if the
conditions required for its initiation are not met when a finalized
block notification is received. `pending_state_sync_attempt` is
introduced to trigger the state sync later when the conditions are
satisfied.

This issue was spotted when I worked on #5406, specifically,
`queue_blocks` was not empty when the finalized block notification was
received, and then the state sync was stalled. cc @dmitry-markin



---------

Co-authored-by: default avatarDmitry Markin <[email protected]>
Co-authored-by: default avatarBastian Köcher <[email protected]>
parent 7c90f51d
Pipeline #496405 waiting for manual action with stages
in 33 minutes and 58 seconds