solana-test-validator no longer limits the size of the genesis archive
When using `--clone` with a large number of accounts it is possible to surpass the default 10MB limit
This commit is contained in:
@ -93,6 +93,7 @@ pub struct TestValidatorGenesis {
|
||||
pub start_progress: Arc<RwLock<ValidatorStartProgress>>,
|
||||
pub authorized_voter_keypairs: Arc<RwLock<Vec<Arc<Keypair>>>>,
|
||||
pub max_ledger_shreds: Option<u64>,
|
||||
pub max_genesis_archive_unpacked_size: Option<u64>,
|
||||
}
|
||||
|
||||
impl TestValidatorGenesis {
|
||||
@ -428,7 +429,9 @@ impl TestValidator {
|
||||
let _ = create_new_ledger(
|
||||
ledger_path,
|
||||
&genesis_config,
|
||||
MAX_GENESIS_ARCHIVE_UNPACKED_SIZE,
|
||||
config
|
||||
.max_genesis_archive_unpacked_size
|
||||
.unwrap_or(MAX_GENESIS_ARCHIVE_UNPACKED_SIZE),
|
||||
solana_ledger::blockstore_db::AccessType::PrimaryOnly,
|
||||
)
|
||||
.map_err(|err| {
|
||||
|
Reference in New Issue
Block a user