misc: 🍱 add a mock consensus test exercising penumbra_wallet::plan::sweep()
#4605
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
💭 describe your changes
this introduces a mock consensus test, showing that the
tx sweep
commandworks as expected for a simple case, when a wallet contains
SWEEP_COUNT + 1
notes.
#4601 more directly tracks the issue of the
note commitment missing
error,which i believe affects more than just sweeping. similarly, #4586 and #4578
fixed the issue of seeing
not a valid SCT root
errors, which could also occurwhen sweeping notes, because it is effectively performing the same action of
performing many transactions in a hot loop, sending funds to oneself.
while this might not "fix" #4574 strictly speaking, this does introduce some
foundational test coverage so that we can write more robust regression tests
against the core logic responsible for sweep planning.
🔖 issue ticket number and link
✅ checklist before requesting a review
if this code contains consensus-breaking changes, i have added the
"consensus-breaking" label. otherwise, i declare my belief that there are not
consensus-breaking changes, for the following reason: