-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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(primitives): nothing to prune situations for PruneModes
#4021
Conversation
Codecov Report
... and 9 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -11,7 +11,7 @@ use serde::{Deserialize, Serialize}; | |||
pub struct PruneModes { | |||
/// Sender Recovery pruning configuration. | |||
// TODO(alexey): removing min blocks restriction is possible if we start calculating the senders | |||
// dynamically on blockchain tree unwind. | |||
// dynamically on blockchain tree unwind. |
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.
// dynamically on blockchain tree unwind. | |
// dynamically on blockchain tree unwind. |
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.
If tip is less than the value in
PruneMode::Distance
orPruneMode::Before
, there's nothing to prune yet and we should just returnNone
fromprune_target_block_*
methods. Previously, we were crashing with configuration error.