Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix OurViewChange small race (#5356)
Always queue OurViewChange event before we send view changes to our peers, because otherwise we risk the peers sending us a message that can be processed by our subsystems before OurViewChange. Normally, this is not really a problem because the latency of the ViewChange we send to our peers is way higher that our subsystem processing OurViewChange, however on testnets like versi where CPU is sometimes overcommitted this race gets triggered occasionally, so let's fix it by sending the messages in the right order. --------- Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
- Loading branch information