-
Notifications
You must be signed in to change notification settings - Fork 220
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
fix: improve prune mode to remove panics #3163
fix: improve prune mode to remove panics #3163
Conversation
0ca9737
to
22548ae
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.
Nice. In future we might need to think of a better name for the PrunedOutput struct. Perhaps PrunableOutput
? idk
PR queued successfully. Your position in queue is: 1 |
PR failed to merge with reason: Failed due to unknown reason |
PR queued successfully. Your position in queue is: 1 |
PR failed to merge with reason: Failed due to unknown reason |
PR queued successfully. Your position in queue is: 2 |
PR is on top of the queue now |
PR failed to merge with reason: Some CI status(es) failed |
PR queued successfully. Your position in queue is: 1 |
PR failed to merge with reason: Some CI status(es) failed |
PR queued successfully. Your position in queue is: 1 |
PR failed to merge with reason: Some CI status(es) failed |
PR queued successfully. Your position in queue is: 1 |
88b2edd
to
7c54bcb
Compare
PR failed to merge with reason: Not approved |
PR is on top of the queue now |
PR failed to merge with reason: Some CI status(es) failed |
PR queued successfully. Your position in queue is: 2 |
PR is on top of the queue now |
Description
When requesting pruned data on base_node, the node would panic as it tried to provide pruned data.
Removed this panic and changed requests for
TransactionOutputs
toPrunedOutputs
so that callee functions can decide what to do with the data.Fixed ignored pruned unit test.
Added in cucumber test to prove nodes cant sync from pruned nodes and neither panics.
Motivation and Context
How Has This Been Tested?
Checklist:
development
branch.