Skip to content
Unverified Commit a6952c74 authored by Alexandru Gheorghe's avatar Alexandru Gheorghe Committed by GitHub
Browse files

approval-distribution: Update topology if authorities are discovered later (#2981)



Fixes: https://github.com/paritytech/polkadot-sdk/issues/2138.

Especially on restart AuthorithyDiscovery cache is not populated so we
create an invalid topology and messages won't be routed correctly for
the entire session. This PR proposes to try to fix this by updating the
topology as soon as we now the Authority/PeerId mapping, that should
impact the situation dramatically.


[This issue was hit
yesterday](https://grafana.teleport.parity.io/goto/o9q2625Sg?orgId=1),
on Westend and resulted in stalling the finality.


# TODO

- [x] Unit tests
- [x] Test impact on versi

---------

Signed-off-by: default avatarAlexandru Gheorghe <[email protected]>
parent b57e53dc
Pipeline #438089 failed with stages
in 58 minutes and 17 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