Revert "solana-test-validator no longer limits the size of the genesis archive"
This reverts commit 0cefd46d9d
.
This commit is contained in:
@ -83,7 +83,6 @@ pub struct TestValidatorGenesis {
|
|||||||
pub start_progress: Arc<RwLock<ValidatorStartProgress>>,
|
pub start_progress: Arc<RwLock<ValidatorStartProgress>>,
|
||||||
pub authorized_voter_keypairs: Arc<RwLock<Vec<Arc<Keypair>>>>,
|
pub authorized_voter_keypairs: Arc<RwLock<Vec<Arc<Keypair>>>>,
|
||||||
pub max_ledger_shreds: Option<u64>,
|
pub max_ledger_shreds: Option<u64>,
|
||||||
pub max_genesis_archive_unpacked_size: Option<u64>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TestValidatorGenesis {
|
impl TestValidatorGenesis {
|
||||||
@ -414,9 +413,7 @@ impl TestValidator {
|
|||||||
let _ = create_new_ledger(
|
let _ = create_new_ledger(
|
||||||
ledger_path,
|
ledger_path,
|
||||||
&genesis_config,
|
&genesis_config,
|
||||||
config
|
MAX_GENESIS_ARCHIVE_UNPACKED_SIZE,
|
||||||
.max_genesis_archive_unpacked_size
|
|
||||||
.unwrap_or(MAX_GENESIS_ARCHIVE_UNPACKED_SIZE),
|
|
||||||
solana_ledger::blockstore_db::AccessType::PrimaryOnly,
|
solana_ledger::blockstore_db::AccessType::PrimaryOnly,
|
||||||
)
|
)
|
||||||
.map_err(|err| {
|
.map_err(|err| {
|
||||||
|
@ -506,7 +506,6 @@ fn main() {
|
|||||||
|
|
||||||
let mut genesis = TestValidatorGenesis::default();
|
let mut genesis = TestValidatorGenesis::default();
|
||||||
genesis.max_ledger_shreds = value_of(&matches, "limit_ledger_size");
|
genesis.max_ledger_shreds = value_of(&matches, "limit_ledger_size");
|
||||||
genesis.max_genesis_archive_unpacked_size = Some(u64::MAX);
|
|
||||||
|
|
||||||
admin_rpc_service::run(
|
admin_rpc_service::run(
|
||||||
&ledger_path,
|
&ledger_path,
|
||||||
|
Reference in New Issue
Block a user