Drop older slots in the ledger (#5188)

* Add facility to delete blocktree columns in range

* Add ledger cleanup service

* Add local_cluster test
This commit is contained in:
Sagar Dhawan
2019-07-20 13:13:55 -07:00
committed by GitHub
parent 9d2940d487
commit a07b17b9b5
10 changed files with 271 additions and 67 deletions

View File

@@ -40,6 +40,7 @@ pub struct ValidatorConfig {
pub account_paths: Option<String>,
pub rpc_config: JsonRpcConfig,
pub snapshot_path: Option<String>,
pub max_ledger_slots: Option<u64>,
pub broadcast_stage_type: BroadcastStageType,
pub erasure_config: ErasureConfig,
}
@@ -51,6 +52,7 @@ impl Default for ValidatorConfig {
voting_disabled: false,
blockstream: None,
storage_slots_per_turn: DEFAULT_SLOTS_PER_TURN,
max_ledger_slots: None,
account_paths: None,
rpc_config: JsonRpcConfig::default(),
snapshot_path: None,
@@ -247,6 +249,7 @@ impl Validator {
blocktree.clone(),
&storage_state,
config.blockstream.as_ref(),
config.max_ledger_slots,
ledger_signal_receiver,
&subscriptions,
&poh_recorder,