Describe the feature
Right now if you attempt to unwind past the account / storage history limit, for example the one configured here:
|
account_history: Some(PruneMode::Distance(MINIMUM_PRUNING_DISTANCE)), |
|
storage_history: Some(PruneMode::Distance(MINIMUM_PRUNING_DISTANCE)), |
This will result in an error in the merkle stage. It makes sense that the merkle unwind would fail, because we don't have enough history. However, we should instead return an error and add a log for the user before running any stages if we find that we don't have enough history and can't unwind to the desired block
Additional context
No response
Describe the feature
Right now if you attempt to unwind past the account / storage history limit, for example the one configured here:
reth/crates/node/core/src/args/pruning.rs
Lines 105 to 106 in 672d973
This will result in an error in the merkle stage. It makes sense that the merkle unwind would fail, because we don't have enough history. However, we should instead return an error and add a log for the user before running any stages if we find that we don't have enough history and can't unwind to the desired block
Additional context
No response