Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4385: Fix PeerStateActions bugs and update testing r=coot a=coot # Description This PR fixes three bugs (two in production code, one in testing) * fixed a `hot -> warm -> hot` cycle; we used to forget the reason for `hot -> warm` demotion and then use `0` promtion delay. * fixed exception handling in `deactivatePeerConnection` (part of `PeerStateActions`), which can result in a tight loop (eventually broken by mux shutdown) * fixed a deadlock of chain-sync & block-fetch in `sim-net`: we used two different `FetchClientRegistry` which blocked `chain-sync` to start. This PR also includes a test which can reproduce the first bug and various smaller code changes. Co-authored-by: Marcin Szamotulski <coot@coot.me>
- Loading branch information
Showing
17 changed files
with
775 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.