You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current implementation, the timeout event is not handled when the timeout expires but only when receiving the next Block message.
Relevant Context
When the node is synchronizing with a peer (OutOfSync mode), a timeout is set within which the next tip+1 should be received.
This timeout is meant to prevent synchronization from stopping the consensus loop indefinitely.
Detailed Description
Currently, the timeout is handled by OutOfSync's function on_event (Block message) in fsm.rs: if a block is received and the timeout has expired, the function returns true, making the node switch back to InSync mode. Similarly, this function is only invoked by the on_event (Block message) function of SimpleFSM.
Possible Solution
The expiration of the timeout should be a separate event handled upon expiration.
The text was updated successfully, but these errors were encountered:
Summary
In the current implementation, the timeout event is not handled when the timeout expires but only when receiving the next Block message.
Relevant Context
When the node is synchronizing with a peer (OutOfSync mode), a timeout is set within which the next tip+1 should be received.
This timeout is meant to prevent synchronization from stopping the consensus loop indefinitely.
Detailed Description
Currently, the timeout is handled by
OutOfSync
's functionon_event
(Block message) infsm.rs
: if a block is received and the timeout has expired, the function returnstrue
, making the node switch back toInSync
mode. Similarly, this function is only invoked by theon_event
(Block message) function ofSimpleFSM
.Possible Solution
The expiration of the timeout should be a separate event handled upon expiration.
The text was updated successfully, but these errors were encountered: