Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p2p local root peers #3006

Merged
merged 8 commits into from
Apr 10, 2021
Merged

p2p local root peers #3006

merged 8 commits into from
Apr 10, 2021

Commits on Mar 18, 2021

  1. Move some of the network test modules that were in the wrong place.

    The test/Ouroboros/ heirarchy is not for test modules, those live in
    test/Test/. That heirarchy is for extra source modules that happen only
    to be used within tests. Clear as mud?
    dcoutts committed Mar 18, 2021
    Configuration menu
    Copy the full SHA
    3571e7c View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2021

  1. Split the peer selection tests up

    The module was rather on the huge side.
    dcoutts committed Mar 19, 2021
    Configuration menu
    Copy the full SHA
    da5ce6e View commit details
    Browse the repository at this point in the history
  2. Improve the QC shrinker for the governor pick scripts

    Improve the generation and shrinking of pick scripts, and make their
    show instances much smaller so the counterexamples are easier to read.
    
    Also there were several pick scripts in the mock env that were not being
    shrunk at all. Fix that, and adjust so that any future additions will be
    noticed.
    dcoutts committed Mar 19, 2021
    Configuration menu
    Copy the full SHA
    16d4970 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    99ad18d View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2021

  1. Add a new LocalRootPeers abstraction for the p2p governor

    Not yet used. It will replace the current simple representation in the
    governor state.
    
    Add tests for the QC generator and the non-trivial clampToLimits
    function.
    dcoutts committed Mar 29, 2021
    Configuration menu
    Copy the full SHA
    263e0d2 View commit details
    Browse the repository at this point in the history
  2. Swap the representation to the new LocalRootPeers

    That is, change the representation in the governor state for the local
    root peers from Map peeraddr PeerAdvertise to LocalRootPeers peeraddr.
    
    Then follow through the minimally necessary changes. In particular this
    does not yet introduce the governor targets of the local root peers
    being established or active peers.
    
    Also update the QC tests, using the new generator for the
    LocalRootPeers from the previous patch.
    dcoutts committed Mar 29, 2021
    Configuration menu
    Copy the full SHA
    c53c1af View commit details
    Browse the repository at this point in the history
  3. Added test for the fromGroups function.

    bolt12 authored and dcoutts committed Mar 29, 2021
    Configuration menu
    Copy the full SHA
    55022ca View commit details
    Browse the repository at this point in the history
  4. Documented the fact that the validator and generator deliberatly leave

    the enforcement of the invariant that says Public/Local Root peer sets
    to be disjoint.
    bolt12 authored and dcoutts committed Mar 29, 2021
    Configuration menu
    Copy the full SHA
    e0978c3 View commit details
    Browse the repository at this point in the history