mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-09 03:18:44 -05:00
Point BDK to commit that fixes overflow error
Edge cases of UTXOs where value < fee cause the BDK's `coin_select` calculation to panic. This issue was fixed upstream thus we point the BDK dependency against the commit of the merged fix.
This commit is contained in:
parent
04b49d7117
commit
0341e7c9fc
5
Cargo.lock
generated
5
Cargo.lock
generated
@ -279,9 +279,8 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bdk"
|
name = "bdk"
|
||||||
version = "0.5.0"
|
version = "0.5.2-dev"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "git+https://github.com/bitcoindevkit/bdk.git?rev=e5ecc7f#e5ecc7f5410aea9d7a108a46d01c7a2fa0822bb7"
|
||||||
checksum = "4260e70501c2f9d6fb2915cf2be2f5b8ba57743e527834de5de6e371827f1e19"
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"bdk-macros",
|
"bdk-macros",
|
||||||
|
@ -15,7 +15,7 @@ async-trait = "0.1"
|
|||||||
atty = "0.2"
|
atty = "0.2"
|
||||||
backoff = { version = "0.3", features = ["tokio"] }
|
backoff = { version = "0.3", features = ["tokio"] }
|
||||||
base64 = "0.13"
|
base64 = "0.13"
|
||||||
bdk = { version = "0.5" }
|
bdk = { git = "https://github.com/bitcoindevkit/bdk.git", rev = "e5ecc7f" }
|
||||||
big-bytes = "1"
|
big-bytes = "1"
|
||||||
bitcoin = { version = "0.26", features = ["rand", "use-serde"] }
|
bitcoin = { version = "0.26", features = ["rand", "use-serde"] }
|
||||||
config = { version = "0.11", default-features = false, features = ["toml"] }
|
config = { version = "0.11", default-features = false, features = ["toml"] }
|
||||||
|
@ -9,6 +9,7 @@ use bdk::database::BatchDatabase;
|
|||||||
use bdk::descriptor::Segwitv0;
|
use bdk::descriptor::Segwitv0;
|
||||||
use bdk::electrum_client::{ElectrumApi, GetHistoryRes};
|
use bdk::electrum_client::{ElectrumApi, GetHistoryRes};
|
||||||
use bdk::keys::DerivableKey;
|
use bdk::keys::DerivableKey;
|
||||||
|
use bdk::wallet::AddressIndex;
|
||||||
use bdk::{FeeRate, KeychainKind};
|
use bdk::{FeeRate, KeychainKind};
|
||||||
use bitcoin::{Network, Script};
|
use bitcoin::{Network, Script};
|
||||||
use reqwest::Url;
|
use reqwest::Url;
|
||||||
@ -255,7 +256,7 @@ where
|
|||||||
.wallet
|
.wallet
|
||||||
.lock()
|
.lock()
|
||||||
.await
|
.await
|
||||||
.get_new_address()
|
.get_address(AddressIndex::New)
|
||||||
.context("Failed to get new Bitcoin address")?;
|
.context("Failed to get new Bitcoin address")?;
|
||||||
|
|
||||||
Ok(address)
|
Ok(address)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user