From 6f991b3c1132a0810b583a0678a5cc25f07eb1fe Mon Sep 17 00:00:00 2001 From: Anatoly Yakovenko Date: Tue, 10 Jul 2018 22:35:58 -0700 Subject: [PATCH] Send keypair args for validators instead of leaders --- src/bin/fullnode.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/bin/fullnode.rs b/src/bin/fullnode.rs index e85f0037566231..26f90ba24f8195 100644 --- a/src/bin/fullnode.rs +++ b/src/bin/fullnode.rs @@ -73,7 +73,14 @@ fn main() -> () { let fullnode = if let Some(t) = matches.value_of("testnet") { let testnet_address_string = t.to_string(); let testnet_addr = testnet_address_string.parse().unwrap(); - FullNode::new(node, false, InFile::StdIn, None, Some(testnet_addr), None) + FullNode::new( + node, + false, + InFile::StdIn, + Some(keypair), + Some(testnet_addr), + None, + ) } else { node.data.current_leader_id = node.data.id.clone(); @@ -82,14 +89,7 @@ fn main() -> () { } else { OutFile::StdOut }; - FullNode::new( - node, - true, - InFile::StdIn, - Some(keypair), - None, - Some(outfile), - ) + FullNode::new(node, true, InFile::StdIn, None, None, Some(outfile)) }; fullnode.join().expect("join"); }