mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
feat(pruner): transaction senders (#3912)
This commit is contained in:
@@ -10,7 +10,12 @@ use serde::{Deserialize, Serialize};
|
||||
#[serde(default)]
|
||||
pub struct PruneModes {
|
||||
/// Sender Recovery pruning configuration.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
// 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, _>"
|
||||
)]
|
||||
pub sender_recovery: Option<PruneMode>,
|
||||
/// Transaction Lookup pruning configuration.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
@@ -126,7 +131,7 @@ impl PruneModes {
|
||||
}
|
||||
|
||||
impl_prune_parts!(
|
||||
(sender_recovery, "SenderRecovery", None),
|
||||
(sender_recovery, "SenderRecovery", Some(64)),
|
||||
(transaction_lookup, "TransactionLookup", None),
|
||||
(receipts, "Receipts", Some(64)),
|
||||
(account_history, "AccountHistory", Some(64)),
|
||||
|
||||
Reference in New Issue
Block a user