Add FullnodeConfig struct to Fullnode::new* functions

This avoids having to touch *every* Fullnode::new* call site when
a new fullnode option is added
This commit is contained in:
Michael Vines
2019-01-29 08:51:01 -08:00
parent 6da7a784f2
commit ae7f169027
5 changed files with 83 additions and 171 deletions

View File

@@ -44,7 +44,6 @@ pub struct ThinClient {
balances: HashMap<Pubkey, Account>,
signature_status: bool,
confirmation: Option<usize>,
rpc_client: RpcClient,
}
@@ -472,9 +471,7 @@ pub fn new_fullnode(
&last_id,
Some(Arc::new(vote_signer)),
None,
false,
None,
None,
Default::default(),
);
(server, leader_data, genesis_block, alice, ledger_path)