add nosigverify command line option to ease debug

This commit is contained in:
Rob Walker 2018-11-23 12:17:29 -08:00
parent b3d2c900cd
commit e2373ff51a
1 changed files with 8 additions and 1 deletions

View File

@ -32,6 +32,11 @@ fn main() {
let matches = App::new("fullnode")
.version(crate_version!())
.arg(
Arg::with_name("nosigverify")
.short("v")
.long("nosigverify")
.help("Run without signature verification"),
).arg(
Arg::with_name("identity")
.short("i")
.long("identity")
@ -61,6 +66,8 @@ fn main() {
.help("Custom RPC port for this node"),
).get_matches();
let sigverify = !matches.is_present("nosigverify");
let (keypair, vote_account_keypair, ncp) = if let Some(i) = matches.value_of("identity") {
let path = i.to_string();
if let Ok(file) = File::open(path.clone()) {
@ -139,7 +146,7 @@ fn main() {
keypair.clone(),
vote_account_keypair.clone(),
network,
false,
sigverify,
leader_scheduler,
rpc_port,
);