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

@@ -422,6 +422,10 @@ impl TestValidator {
warp_slot: config.warp_slot,
bpf_jit: !config.no_bpf_jit,
validator_exit: config.validator_exit.clone(),
rocksdb_compaction_interval: Some(100), // Compact every 100 slots
max_ledger_shreds: Some(10_000), /* 10,000 was derived empirically by watching the size
of the rocksdb/ directory self-limit itself to the
40MB-150MB range when running `solana-test-validator` */
no_wait_for_vote_to_start_leader: true,
..ValidatorConfig::default()
};