-
Notifications
You must be signed in to change notification settings - Fork 677
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: disallow stacking during prepare phase #4094
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #4094 +/- ##
==========================================
- Coverage 85.08% 82.89% -2.20%
==========================================
Files 429 429
Lines 302009 302009
==========================================
- Hits 256976 250358 -6618
- Misses 45033 51651 +6618 ☔ View full report in Codecov by Sentry. |
Hi @friedger, thanks for sending this over! Regarding the PR organization, we don't use Clarinet to test |
Actually, I want to clarify this. It's totally fine to use Clarinet to test pox-4 (see https://github.com/hirosystems/stacks-e2e-testing); it's just that it shouldn't come as a substitute or at the expense of the Rust tests we have for locking/unlocking. |
pox_4.rs and pox_4_tests.rs is not yet in branch |
@jcnelson, this means we need a |
Yes
…On Wed, Nov 29, 2023, 7:40 AM Nikos Baxevanis ***@***.***> wrote:
We test PoX in Rust via tests in pox-locking/src and in
stackslib/src/chainstate/stacks/boot/.
@jcnelson <https://github.com/jcnelson>, this means we need a pox_4.rs
similar to
https://github.com/stacks-network/stacks-core/blob/next/pox-locking/src/pox_3.rs,
right?
—
Reply to this email directly, view it on GitHub
<#4094 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADQJKYUQXVW6DOAVRSKGD3YG4UM7AVCNFSM6AAAAAA75YC2PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZRHAZDENZTGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
checks are green now :-) |
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.
The new event for revoke-delegate-stx
looks good. I'm not sure about the implications of the stacking during prepare phase change, so my approval for this PR wouldn't mean much. @janniks any thoughts?
I have added a link to the discussion on discord before this feature request (https://discord.com/channels/621759717756370964/730814571517968436/1112787020117463100) to the corresponding github issue |
All comments addressed |
Changes related to revoke-delegate-stx have been removed. |
ff2c499
to
6ed2a25
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.
@zone117x Could you please review this again? |
Feedback from PR meeting - let's open a discussion. @AshtonStephens |
Discussion created: #4193 |
Converted to draft until discussion is concluded |
Risky , will reconsider for next HF |
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 update pox-4 to disallow stacking during the prepare phase
Applicable issues
Additional info (benefits, drawbacks, caveats)
When user stack stx during the prepare phase, their stx is locked, but they do not earn rewards. In addition, pool operators have extra work to remove these pool members.
Checklist