Reduce test-validator ledger size

This commit is contained in:
Michael Vines
2021-04-04 20:11:56 -07:00
parent 701fc93343
commit b242f82696
2 changed files with 9 additions and 4 deletions

View File

@ -48,10 +48,6 @@ impl LedgerCleanupService {
compaction_interval: Option<u64>,
max_compaction_jitter: Option<u64>,
) -> Self {
info!(
"LedgerCleanupService active. Max Ledger Slots {}",
max_ledger_shreds
);
let exit = exit.clone();
let mut last_purge_slot = 0;
let mut last_compaction_slot = 0;
@ -60,6 +56,11 @@ impl LedgerCleanupService {
let last_compact_slot = Arc::new(AtomicU64::new(0));
let last_compact_slot2 = last_compact_slot.clone();
info!(
"LedgerCleanupService active. max ledger shreds={}, compaction interval={}",
max_ledger_shreds, compaction_interval,
);
let exit_compact = exit.clone();
let blockstore_compact = blockstore.clone();