@ -569,6 +569,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")
|
||||||
@ -773,6 +781,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
|
||||||
@ -1048,7 +1057,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,
|
||||||
|
Reference in New Issue
Block a user