Skip to content
Snippets Groups Projects
Unverified Commit bb5e05ce authored by Alexandru Gheorghe's avatar Alexandru Gheorghe Committed by GitHub
Browse files

Populate topology after restart if finality is lagging behind current session (#6913)


There is a small issue on restart, where if finality is lagging across
session boundary and the validator restarts, then the validator won't be
able to contribute anymore with assginments/approvals and gossiping for
the blocks from the previous session, because after restart it builds
the Topology only for the new session, so without a topology it won't be
able to distribute assignments and approvals because everything in
`approval-distribution` is gated on having a topology for the block.

The fix is to also keep track of the last finalized block and its
session and if it is different from the list of encountered sessions,
build its topology and send it to the rest of subsystems.

---------

Signed-off-by: default avatarAlexandru Gheorghe <alexandru.gheorghe@parity.io>
Co-authored-by: default avatarordian <write@reusable.software>
parent fddb6a2c
No related merge requests found
Pipeline #514710 waiting for manual action with stages
in 6 minutes and 4 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment