mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(pruner, storage): prune receipts & save checkpoints to database (#3733)
Co-authored-by: joshieDo <ranriver@protonmail.com>
This commit is contained in:
@ -5,7 +5,7 @@ use reth_downloaders::{
|
||||
headers::reverse_headers::ReverseHeadersDownloaderBuilder,
|
||||
};
|
||||
use reth_network::{NetworkConfigBuilder, PeersConfig, SessionsConfig};
|
||||
use reth_primitives::PruneTargets;
|
||||
use reth_primitives::PruneModes;
|
||||
use secp256k1::SecretKey;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::path::PathBuf;
|
||||
@ -285,12 +285,12 @@ pub struct PruneConfig {
|
||||
/// Minimum pruning interval measured in blocks.
|
||||
pub block_interval: u64,
|
||||
/// Pruning configuration for every part of the data that can be pruned.
|
||||
pub parts: PruneTargets,
|
||||
pub parts: PruneModes,
|
||||
}
|
||||
|
||||
impl Default for PruneConfig {
|
||||
fn default() -> Self {
|
||||
Self { block_interval: 10, parts: PruneTargets::default() }
|
||||
Self { block_interval: 10, parts: PruneModes::default() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user