-
Notifications
You must be signed in to change notification settings - Fork 678
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
Process successful .signers-voting results #4360
Conversation
Once the 70% voting threshold is reached, save the key for the current cycle to a map and emit an event: ``` { event: "approved-aggregate-public-key", reward-cycle: reward-cycle, key: key, } ```
7808924
to
59bb4aa
Compare
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.
Mainly syntax NITs except for the sequential (and ...) near the end of the vote function.
Assuming these are fixed & includes everything @jferrant needs to continue tests it should be GTM.
Also add checks to ensure that no events are generated when a vote fails.
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.
LGTM; just make sure CI passes after resolving any merge conflicts. Thanks!
Merged |
Merged again and waiting for test results. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Adds functionality into the .signers-voting contract to track when an aggregate public key has reached the 70% threshold to be accepted as the key for the next cycle. This key can be queried via the
get-approved-aggregate-key
read-only function.Applicable issues
.signers-voting
results #4354.signer-voting
need to accept out of round votes #4322Additional info (benefits, drawbacks, caveats)
Checklist
docs/rpc/openapi.yaml
andrpc-endpoints.md
for v2 endpoints,event-dispatcher.md
for new events)clarity-benchmarking
repobitcoin-tests.yml