Add --no-check-vote-account argument (#8430)

automerge
This commit is contained in:
Michael Vines 2020-02-24 23:54:51 -07:00 committed by GitHub
parent b7755123c1
commit 0fe74e95fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -591,6 +591,14 @@ pub fn main() {
.takes_value(false)
.help("Launch node without voting"),
)
.arg(
Arg::with_name("no_check_vote_account")
.long("no-check-vote-account")
.takes_value(false)
.conflicts_with("no_voting")
.requires("entrypoint")
.help("Skip the RPC vote account sanity check")
)
.arg(
Arg::with_name("dev_no_sigverify")
.long("dev-no-sigverify")
@ -795,6 +803,7 @@ pub fn main() {
let cuda = matches.is_present("cuda");
let no_genesis_fetch = matches.is_present("no_genesis_fetch");
let no_snapshot_fetch = matches.is_present("no_snapshot_fetch");
let no_check_vote_account = matches.is_present("no_check_vote_account");
let private_rpc = matches.is_present("private_rpc");
// Canonicalize ledger path to avoid issues with symlink creation
@ -1070,7 +1079,7 @@ pub fn main() {
}
validator_config.expected_genesis_hash = Some(genesis_hash);
if !validator_config.voting_disabled {
if !validator_config.voting_disabled && !no_check_vote_account {
check_vote_account(
&rpc_client,
&vote_account,