fn new() -> Self {
Self::new_with_args(&[], &[])
}
fn new_with_sat_index() -> Self {
Self::new_with_args(&["--index-sats"], &[])
}
fn new_with_args(ord_args: &[&str], server_args: &[&str]) -> Self {
Self::new_server(test_bitcoincore_rpc::spawn(), None, ord_args, server_args)
}
fn new_with_regtest() -> Self {
Self::new_server(
test_bitcoincore_rpc::builder()
.network(bitcoin::network::constants::Network::Regtest)
.build(),
None,
&["--chain", "regtest"],
&[],
)
}
fn new_with_regtest_with_json_api() -> Self {
Self::new_server(
test_bitcoincore_rpc::builder()
.network(bitcoin::network::constants::Network::Regtest)
.build(),
None,
&["--chain", "regtest"],
&["--enable-json-api"],
)
}
fn new_with_regtest_with_index_sats() -> Self {
Self::new_server(
test_bitcoincore_rpc::builder()
.network(bitcoin::Network::Regtest)