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

Documented GovernorMockEnvironment Generator #3010

Merged
merged 4 commits into from
Mar 25, 2021

Conversation

bolt12
Copy link
Contributor

@bolt12 bolt12 commented Mar 23, 2021

Added a check that local and public root peers are disjoint. Also tried very hard to extend some more governor properties with my new found insights from modelling the Governor with Alloy, and all that I found was this extra harmless check.

Trace properties already check for the validity of the PeerSelectionStatee, so we can be confident that at least the state is not corrupted after a certain amount of time. I also thought about adding consistency checks for each possible action (i.e. checking if there's no starvation of a particular action), but I am not sure if the livelock check covers that.

@bolt12 bolt12 requested a review from dcoutts March 23, 2021 13:08
@bolt12
Copy link
Contributor Author

bolt12 commented Mar 23, 2021

Seems like I found a slight bug on the generator, hopefully it is fixed now

@bolt12
Copy link
Contributor Author

bolt12 commented Mar 24, 2021

Just for reference, the thing I "fixed" was actually intended to be that way, so I'll revert and document the reason for it!

the enforcement of the invariant that says Public/Local Root peer sets
to be disjoint.
@bolt12 bolt12 changed the title Added new condition to GovernorMockEnv invariant Documented GovernorMockEnvironment Generator Mar 25, 2021
@bolt12 bolt12 merged commit c124383 into dcoutts/p2p-local-root-peers Mar 25, 2021
@iohk-bors iohk-bors bot deleted the bolt12/dcoutts/p2p-local-peers branch March 25, 2021 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant