.build(), None, &["--chain", "regtest", "--index-sats"], &[], ) } fn new_with_regtest_with_index_runes() -> Self { Self::new_server( test_bitcoincore_rpc::builder() .network(bitcoin::Network::Regtest) .build(), None, &[ "--chain", "regtest", "--index-runes-pre-alpha-i-agree-to-get-rekt", ], &["--enable-json-api"], ) } fn new_with_bitcoin_rpc_server_and_config( bitcoin_rpc_server: test_bitcoincore_rpc::Handle, config: String, ) -> Self { Self::new_server(bitcoin_rpc_server, Some(config), &[], &[]) } fn new_server( bitcoin_rpc_server: test_bitcoincore_rpc::Handle, config: Option, ord_args: &[&str], server_args: &[&str], ) -> Self { let tempdir = TempDir::new().unwrap(); let cookiefile = tempdir.path().join("cookie"); fs::write(&cookiefile, "username:password").unwrap();