Add CLI args for no-incremental-snapshot-fetch (#20787)

This commit is contained in:
Brooks Prumo
2021-10-19 13:15:30 -05:00
committed by GitHub
parent dc1b8ddea1
commit 7a36bf5095
2 changed files with 25 additions and 0 deletions

View File

@@ -40,6 +40,12 @@ use {
},
};
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
pub enum ConfigState {
Disabled,
Enabled,
}
#[derive(Debug)]
pub struct RpcBootstrapConfig {
pub no_genesis_fetch: bool,
@@ -47,6 +53,8 @@ pub struct RpcBootstrapConfig {
pub no_untrusted_rpc: bool,
pub max_genesis_archive_unpacked_size: u64,
pub no_check_vote_account: bool,
pub incremental_snapshots: ConfigState,
pub incremental_snapshot_fetch: ConfigState,
}
#[allow(clippy::too_many_arguments)]