Less constructors

This commit is contained in:
Greg Fitzgerald
2018-08-22 17:39:34 -06:00
committed by Grimes
parent 57daeb35d2
commit be58fdf1bb
3 changed files with 17 additions and 34 deletions

View File

@ -49,7 +49,7 @@ impl Config {
}
impl Fullnode {
fn new_internal(
pub fn new(
node: TestNode,
ledger_path: &str,
keypair: Keypair,
@ -154,30 +154,6 @@ impl Fullnode {
}
}
pub fn new(
node: TestNode,
ledger: &str,
keypair: Keypair,
network_entry_for_validator: Option<SocketAddr>,
) -> Self {
Self::new_internal(node, ledger, keypair, network_entry_for_validator, false)
}
pub fn new_without_sigverify(
node: TestNode,
ledger_path: &str,
keypair: Keypair,
network_entry_for_validator: Option<SocketAddr>,
) -> Self {
Self::new_internal(
node,
ledger_path,
keypair,
network_entry_for_validator,
true,
)
}
/// Create a server instance acting as a leader.
///
/// ```text