-
Notifications
You must be signed in to change notification settings - Fork 673
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
PoX-4 revoke-delegate-stx
calls should fail if no state is changed
#4146
Comments
Could you clarify the use case. Users have to check the stacking state nevertheless to learn about the stacking state. |
If an event observer receives a
Or, if you don't handle this during event ingestion, you just push off the complexity to read queries. E.g. a query for "as a delegate, what are the last X revocations that I should act on?". Why require event observers to handle more stacking state complexity when It seems trivial to improve this on the pox/stacks-node side? |
Should |
yes, it should fail. |
fixed in #4157 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
There's a discussion in PR #4094 around the behavior of
revoke-delegate-stx
. Right now the function always returns(ok)
even if no state was changed:stacks-core/stackslib/src/chainstate/stacks/boot/pox-4.clar
Lines 636 to 641 in 2c1c777
This means A) the new synthetic event for
revoke-delegate-stx
can be triggered repeatedly for no valid/useful reason, and B) the event has empty data:stacks-core/pox-locking/src/events.rs
Lines 340 to 346 in 789c235
Ideally the event would at least include the
delegate-to
address so that the event can be associated with the prior delegation. And ideally the call would return an error and not emit repeated events if called repeatedly.The text was updated successfully, but these errors were encountered: