Skip to content

Conversation

@pdyraga
Copy link
Member

@pdyraga pdyraga commented Sep 23, 2022

See #3301
See #3302

The code from these two PRs ☝🏻 is needed for testing this code.

See keep-network/sortition-pools#188

After adding chaosnet support to the sortition pool, we need to modify the client to check the chaosnet state before attempting to join the sortition pool.

BetaOperatorPolicy is a JoinPolicy implementation checking chaosnet and beta operator status. If chaosnet has been deactivated, the operator is allowed to join the pool. If chaosnet is active and the operator is beta operator, the operator is allowed to join the pool. If chaosnet is active and the operator is not beta operator, the operator is not allowed to join the pool.

The BetaOperatorPolicy is applied both to the random beacon and tbtc.

The ConjunctionPolicy requires all the provided policies to pass. It
will allow to aggregate pre-params policy with beta operator policy
together for tbtc.
All sortition pool policies are now aggregated in a single file.
BetaOperatorPolicy is a JoinPolicy implementation checking chaosnet and beta
operator status. If chaosnet has been deactivated, the operator is allowed to
join the pool. If chaosnet is active and the operator is beta operator, the
operator is allowed to join the pool. If chaosnet is active and the operator is
not beta operator, the operator is not allowed to join the pool.

The BetaOperatorPolicy is applied both to the random beacon and tbtc.
@pdyraga pdyraga requested a review from a team September 23, 2022 14:36
Just grammar improvements, nothing more.
@pdyraga pdyraga added this to the v2.0.0-m4 milestone Sep 25, 2022
@tomaszslabon
Copy link
Contributor

tomaszslabon commented Sep 27, 2022

It seems to be working as expected.
Ran some basic tests: chaosnet was active, but operator that was not a beta operator could not join the sortition pool.

@tomaszslabon tomaszslabon merged commit b199d39 into main Sep 27, 2022
@tomaszslabon tomaszslabon deleted the chaosnet-client branch September 27, 2022 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants