-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add test verifying zero-amount pending withdrawal is correctly processed #4107
Conversation
…sed in the case that sweep is ineffective.
Hey @bshastry, a zero-amount withdrawal isn't a possible situation. See here, a zero-amount withdrawal request is considered a full exit: consensus-specs/specs/electra/beacon-chain.md Lines 1511 to 1516 in c84d1c4
consensus-specs/specs/electra/beacon-chain.md Line 136 in c84d1c4
|
Thank you so much for pointing out. Well, I suppose that leaves us with three options (or potentially both)
Wdyt? |
Hey @bshastry, those are good test ideas but they already exist 😄
Lines 108 to 128 in 099919f
The assertions are in the Lines 68 to 72 in 099919f
Lines 609 to 636 in 099919f
|
Sorry for taking your time @jtraglia . I'm going to close this PR since the tests are already there. |
Adds a new test called
test_pending_withdrawal_amount_zero_ineffective_sweep
to verify: