-
Notifications
You must be signed in to change notification settings - Fork 679
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
Improve revoke delegate stx #4157
Conversation
c068795
to
983a693
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## next #4157 +/- ##
==========================================
- Coverage 83.09% 82.79% -0.31%
==========================================
Files 430 430
Lines 306140 306345 +205
==========================================
- Hits 254382 253631 -751
- Misses 51758 52714 +956 ☔ View full report in Codecov by Sentry. |
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.
Thanks @friedger! Should this PR be against the next
branch?
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! Thanks @friedger
b0a7476
to
c360c95
Compare
chore: add check for stacking during prepare phase chore: re-add deleted code feat: add revoke-delegate-stx event chore: re-add deleted code feat: add check for delegation state in revoke-delegate-stx chore: move revoke tests to pox-4 chore: add test for revoke event chore: fmt feat: revoke-delegate-stx fails also after expiry fix: use correct type fix: make revoke-delegate-stx event backwards compatible chore: revert unwanted changes chore: remove unwanted changes
33d551d
to
c77969b
Compare
…twork/stacks-core into feat/pox-4-revoke-delegate-stx
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.
I have yet to test these changes in the API, but so far LGTM. This should be merged, and I'll open an issue if any bugs are uncovered during testing.
format!( | ||
r#" | ||
{{ | ||
data: {{ delegate-to: '{delegate_to} }} |
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.
Should this be delegated-to
like in the delegation map in Clarity? cc @friedger
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.
@janniks I was inspired by the delegate-stx parameter name and the database column of the pox3_events table
But your suggestion makes sense.
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.
Created new issue #4246
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.
Yeah, good point. Might make sense in that case to keep named the same. Not sure 🤔
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
This PR improves the function
revoke-delegate-stx
so that the information which pool the user just left is transparent. The function call would fail if the user is not part of a pool.Furthermore, an event for revoking is synthesized similar to other pox events.
Applicable issues
revoke-delegate-stx
calls should fail if no state is changed #4146Additional 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