diff --git a/Cargo.lock b/Cargo.lock index a994774..4320763 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -207,9 +207,9 @@ dependencies = [ [[package]] name = "bdk" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f687a9504efaa1650148b9e891b4c111adb31ceeb9011dec578941b00f18c9f" +checksum = "a6ec4da3dbaa41bb6d6cffe40b113ea8651566da7f96beebe9c0e87fc92b9094" dependencies = [ "ahash", "async-trait", @@ -1442,7 +1442,7 @@ dependencies = [ [[package]] name = "maia" version = "0.1.0" -source = "git+https://github.com/comit-network/maia#70fc548da0fe4f34478fb34ec437fa9a434c7ee3" +source = "git+https://github.com/comit-network/maia#4dd8adaf88f4c9ec244412319ac5e4ed67b509ec" dependencies = [ "anyhow", "bdk", diff --git a/daemon/Cargo.toml b/daemon/Cargo.toml index 1005df3..bce0567 100644 --- a/daemon/Cargo.toml +++ b/daemon/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" anyhow = "1" async-trait = "0.1.51" atty = "0.2" -bdk = { version = "0.13", default-features = false, features = ["sqlite", "electrum"] } +bdk = { version = "0.14", default-features = false, features = ["sqlite", "electrum"] } bytes = "1" chrono = { version = "0.4", features = ["serde"] } clap = "3.0.0-beta.5" diff --git a/daemon/src/wallet.rs b/daemon/src/wallet.rs index f1144a9..607d665 100644 --- a/daemon/src/wallet.rs +++ b/daemon/src/wallet.rs @@ -147,7 +147,7 @@ impl Actor { let wallet = self.wallet.lock().await; let txid = tx.txid(); - let result = wallet.broadcast(tx.clone()); + let result = wallet.broadcast(&tx); if let Err(&bdk::Error::Electrum(electrum_client::Error::Protocol(ref value))) = result.as_ref() @@ -215,7 +215,7 @@ impl Actor { wallet.sign(&mut psbt, SignOptions::default())?; - let txid = wallet.broadcast(psbt.extract_tx())?; + let txid = wallet.broadcast(&psbt.extract_tx())?; tracing::info!(%txid, "Withdraw successful");