mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
feat(primitives): remove constraints on SenderRecovery pruning (#4488)
This commit is contained in:
@ -13,12 +13,7 @@ pub const MINIMUM_PRUNING_DISTANCE: u64 = 128;
|
||||
#[serde(default)]
|
||||
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.
|
||||
#[serde(
|
||||
skip_serializing_if = "Option::is_none",
|
||||
deserialize_with = "deserialize_opt_prune_mode_with_min_blocks::<64, _>"
|
||||
)]
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub sender_recovery: Option<PruneMode>,
|
||||
/// Transaction Lookup pruning configuration.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
@ -104,7 +99,7 @@ impl PruneModes {
|
||||
}
|
||||
|
||||
impl_prune_parts!(
|
||||
(sender_recovery, SenderRecovery, Some(64)),
|
||||
(sender_recovery, SenderRecovery, None),
|
||||
(transaction_lookup, TransactionLookup, None),
|
||||
(receipts, Receipts, Some(64)),
|
||||
(account_history, AccountHistory, Some(64)),
|
||||
|
||||
Reference in New Issue
Block a user