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

Process successful .signers-voting results #4360

Merged
merged 81 commits into from
Feb 21, 2024
Merged

Conversation

obycode
Copy link
Contributor

@obycode obycode commented Feb 9, 2024

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

Additional info (benefits, drawbacks, caveats)

Checklist

  • Test coverage for new or modified code paths
  • Changelog is updated
  • Required documentation changes (e.g., docs/rpc/openapi.yaml and rpc-endpoints.md for v2 endpoints, event-dispatcher.md for new events)
  • New clarity functions have corresponding PR in clarity-benchmarking repo
  • New integration test(s) added to bitcoin-tests.yml

@saralab saralab requested review from friedger, jferrant, setzeus and jcnelson and removed request for jferrant February 9, 2024 14:54
@obycode obycode force-pushed the feat/4354-aggregate-key branch from 7808924 to 59bb4aa Compare February 11, 2024 03:41
Copy link

codecov bot commented Feb 11, 2024

Codecov Report

Attention: 1101 lines in your changes are missing coverage. Please review.

Comparison is base (0b482e3) 60.59% compared to head (d2e6ad8) 54.76%.

Files Patch % Lines
...src/chainstate/stacks/boot/signers_voting_tests.rs 35.81% 1002 Missing ⚠️
...kslib/src/chainstate/nakamoto/coordinator/tests.rs 74.77% 56 Missing ⚠️
stackslib/src/chainstate/stacks/boot/mod.rs 46.42% 15 Missing ⚠️
stackslib/src/net/tests/mod.rs 94.26% 7 Missing ⚠️
stackslib/src/chainstate/stacks/db/transactions.rs 66.66% 6 Missing ⚠️
stackslib/src/chainstate/nakamoto/test_signers.rs 96.03% 4 Missing ⚠️
...ckslib/src/chainstate/stacks/boot/signers_tests.rs 84.21% 3 Missing ⚠️
stackslib/src/chainstate/nakamoto/mod.rs 80.00% 2 Missing ⚠️
stackslib/src/clarity_vm/clarity.rs 95.23% 2 Missing ⚠️
...net/stacks-node/src/tests/nakamoto_integrations.rs 99.03% 2 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             next    #4360      +/-   ##
==========================================
- Coverage   60.59%   54.76%   -5.84%     
==========================================
  Files         448      448              
  Lines      321879   323837    +1958     
==========================================
- Hits       195036   177336   -17700     
- Misses     126843   146501   +19658     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@setzeus setzeus left a 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.

@obycode obycode mentioned this pull request Feb 12, 2024
5 tasks
@obycode obycode requested a review from jcnelson February 21, 2024 16:48
jcnelson
jcnelson previously approved these changes Feb 21, 2024
Copy link
Member

@jcnelson jcnelson left a 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!

@obycode
Copy link
Contributor Author

obycode commented Feb 21, 2024

Merged next and resolved conflicts in 055fad3.

@obycode obycode dismissed stale reviews from jcnelson, kantai, and setzeus via 055fad3 February 21, 2024 19:42
kantai
kantai previously approved these changes Feb 21, 2024
@obycode
Copy link
Contributor Author

obycode commented Feb 21, 2024

Merged again and waiting for test results.

@obycode obycode requested review from jcnelson and kantai February 21, 2024 20:09
@obycode obycode merged commit 5f01065 into next Feb 21, 2024
1 of 2 checks passed
@obycode obycode deleted the feat/4354-aggregate-key branch February 21, 2024 20:50
@blockstack-devops
Copy link
Contributor

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.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants