Skip to content

Commit

Permalink
Send keypair args for validators instead of leaders
Browse files Browse the repository at this point in the history
  • Loading branch information
aeyakovenko authored and garious committed Jul 11, 2018
1 parent 03a8a5e commit 6f991b3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/bin/fullnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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");
}

0 comments on commit 6f991b3

Please sign in to comment.