parent
b7755123c1
commit
0fe74e95fe
|
@ -591,6 +591,14 @@ pub fn main() {
|
||||||
.takes_value(false)
|
.takes_value(false)
|
||||||
.help("Launch node without voting"),
|
.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(
|
||||||
Arg::with_name("dev_no_sigverify")
|
Arg::with_name("dev_no_sigverify")
|
||||||
.long("dev-no-sigverify")
|
.long("dev-no-sigverify")
|
||||||
|
@ -795,6 +803,7 @@ pub fn main() {
|
||||||
let cuda = matches.is_present("cuda");
|
let cuda = matches.is_present("cuda");
|
||||||
let no_genesis_fetch = matches.is_present("no_genesis_fetch");
|
let no_genesis_fetch = matches.is_present("no_genesis_fetch");
|
||||||
let no_snapshot_fetch = matches.is_present("no_snapshot_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");
|
let private_rpc = matches.is_present("private_rpc");
|
||||||
|
|
||||||
// Canonicalize ledger path to avoid issues with symlink creation
|
// Canonicalize ledger path to avoid issues with symlink creation
|
||||||
|
@ -1070,7 +1079,7 @@ pub fn main() {
|
||||||
}
|
}
|
||||||
validator_config.expected_genesis_hash = Some(genesis_hash);
|
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(
|
check_vote_account(
|
||||||
&rpc_client,
|
&rpc_client,
|
||||||
&vote_account,
|
&vote_account,
|
||||||
|
|
Loading…
Reference in New Issue