From 0ad430a9f1596c9d18e393d00c5ba765e12f33eb Mon Sep 17 00:00:00 2001 From: Dave Hrycyszyn Date: Mon, 24 Jun 2024 18:47:03 +0100 Subject: [PATCH] Switching to Mutiny Net for 30 second block times. --- side-node/src/clients/btc_esplora_client.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/side-node/src/clients/btc_esplora_client.rs b/side-node/src/clients/btc_esplora_client.rs index b14aa12..7d53e66 100644 --- a/side-node/src/clients/btc_esplora_client.rs +++ b/side-node/src/clients/btc_esplora_client.rs @@ -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_words = fs::read_to_string(mnemonic_path).expect("couldn't read bitcoin key file"); + println!("Creating wallet from mnemonic: {mnemonic_words}"); 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()); 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 { let mut once = Some(());