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
Implement storage power evolution in simulations for honest participants #202
Conversation
7c2b84d
to
925d258
Compare
Could you change this PR base to #184 so it's easier to review the diff proposed here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically looks good, but will wait for prereq to land
sim *Simulation | ||
id gpbft.ActorID | ||
sim *Simulation | ||
pubkey gpbft.PubKey |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The power table plumbing is external to the sim, as F3 won't know for which participants it will be signing. Only the application itself knows that.
}) | ||
}) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
925d258
to
e9599cb
Compare
Implement the ability to evolve the storage power across honest participants over the course of a simulation. The changes introduce primitives to allow doing this and reflect the changes across the tests using a uniformed fixed storage power generator. The adversary storage power evolution is not yet implemented and left to future work in favour of reducing the number of lines changed. Add two tests that exercise increase and decrease of storage power over sync and async message passing: 1. Sudden increase of storage power results in the corresponding group of nodes to dominate consensus as expected. 2. Gradual decrease of storage power results in loss of dominance among the corresponding group. Fixes #114
e9599cb
to
c729b87
Compare
Implement the ability to evolve the storage power across honest participants over the course of a simulation. The changes introduce primitives to allow doing this and reflect the changes across the tests using a uniformed fixed storage power generator.
The adversary storage power evolution is not yet implemented and left to future work in favour of reducing the number of lines changed.
Add two tests that exercise increase and decrease of storage power over sync and async message passing:
Sudden increase of storage power results in the corresponding group of nodes to dominate consensus as expected.
Gradual decrease of storage power results in loss of dominance among the corresponding group.
Fixes #114
Rebased on top of #187; review that first.