Download incremental snapshots during bootstrap (#20696)

This commit is contained in:
Brooks Prumo 2021-10-21 09:14:51 -05:00 committed by GitHub
parent 05344ad991
commit 4821b0a1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1103 additions and 37 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1817,16 +1817,8 @@ pub fn main() {
"max_genesis_archive_unpacked_size",
u64
),
incremental_snapshots: if matches.is_present("incremental_snapshots") {
bootstrap::ConfigState::Enabled
} else {
bootstrap::ConfigState::Disabled
},
incremental_snapshot_fetch: if matches.is_present("no_incremental_snapshot_fetch") {
bootstrap::ConfigState::Disabled
} else {
bootstrap::ConfigState::Enabled
},
incremental_snapshot_fetch: matches.is_present("incremental_snapshots")
&& !matches.is_present("no_incremental_snapshot_fetch"),
};
let private_rpc = matches.is_present("private_rpc");