Send keypair args for validators instead of leaders
This commit is contained in:
parent
03a8a5ed55
commit
6f991b3c11
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue