Switching to Mutiny Net for 30 second block times.

This commit is contained in:
Dave Hrycyszyn
2024-06-24 18:47:03 +01:00
parent a516de4bcb
commit 0ad430a9f1

View File

@@ -22,6 +22,7 @@ pub async fn run() -> Result<(), anyhow::Error> {
let mnemonic_path = crate::utils::side_paths(dave_dir).1; // TODO: this tuple stinks let mnemonic_path = crate::utils::side_paths(dave_dir).1; // TODO: this tuple stinks
let mnemonic_words = fs::read_to_string(mnemonic_path).expect("couldn't read bitcoin key file"); let mnemonic_words = fs::read_to_string(mnemonic_path).expect("couldn't read bitcoin key file");
println!("Creating wallet from mnemonic: {mnemonic_words}"); println!("Creating wallet from mnemonic: {mnemonic_words}");
let mnemonic = Mnemonic::parse(mnemonic_words).unwrap(); let mnemonic = Mnemonic::parse(mnemonic_words).unwrap();
@@ -62,7 +63,9 @@ pub async fn run() -> Result<(), anyhow::Error> {
println!("Wallet balance before syncing: {} sats", balance.total()); println!("Wallet balance before syncing: {} sats", balance.total());
print!("Syncing..."); print!("Syncing...");
let client = esplora_client::Builder::new("http://signet.bitcoindevkit.net").build_async()?; let client = esplora_client::Builder::new("https://mutinynet.com/api")
.build_async()
.expect("couldn't build esplora client");
fn generate_inspect(kind: KeychainKind) -> impl FnMut(u32, &Script) + Send + Sync + 'static { fn generate_inspect(kind: KeychainKind) -> impl FnMut(u32, &Script) + Send + Sync + 'static {
let mut once = Some(()); let mut once = Some(());