Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored DiffusionArguments for new root peers configuration (#3079)
* Added FromJSON/ToJSON instances Fixed toJSON/fromJSON instance of PeerAdvertise Added JSON roundtrip quickcheck tests Fixed ToJSON/FromJSON instance of DomainAddress and RelayAddress * Updated ouroboros-consensus to accomodate new DiffusionArguments type signature Removed daStaticLocalRootPeers since RelayAddresses are used everywhere Removed redundant imports * Switched to Seq data type instead of list to simplify the code and use a data structure with better asymptotics. In the end we end up converting from/to List to respect the existing Diffusion Layer and PeerSelectionActions APIs * Changed daLocalRootPeersVar, daPublicRootPeersVar and daUseLedgerAfterSlotVar to STM actions since they are read-only Refactored RelayAddress Arbitrary instance definition
- Loading branch information
Showing
10 changed files
with
206 additions
and
89 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
Oops, something went wrong.