Optimize stakes cache and rewards at epoch boundaries (backport #20432) (#20472)

* Optimize stakes cache and rewards at epoch boundaries (backport #20432)

* fix conflicts
This commit is contained in:
Justin Starry
2021-10-06 12:15:27 -04:00
committed by GitHub
parent 95ac00d30a
commit d922971ec6
10 changed files with 739 additions and 47 deletions

View File

@@ -1904,6 +1904,14 @@ pub fn main() {
.help("Allow contacting private ip addresses")
.hidden(true),
)
.arg(
Arg::with_name("disable_epoch_boundary_optimization")
.long("disable-epoch-boundary-optimization")
.takes_value(false)
.help("Disables epoch boundary optimization and overrides the \
optimize_epoch_boundary_updates feature switch if enabled.")
.hidden(true),
)
.after_help("The default subcommand is run")
.subcommand(
SubCommand::with_name("exit")
@@ -2362,6 +2370,8 @@ pub fn main() {
tpu_coalesce_ms,
no_wait_for_vote_to_start_leader: matches.is_present("no_wait_for_vote_to_start_leader"),
accounts_shrink_ratio,
disable_epoch_boundary_optimization: matches
.is_present("disable_epoch_boundary_optimization"),
..ValidatorConfig::default()
};