mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-14 09:16:07 -04: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
3 changed files with 5 additions and 5 deletions
|
@ -9,6 +9,7 @@ use bdk::database::BatchDatabase;
|
|||
use bdk::descriptor::Segwitv0;
|
||||
use bdk::electrum_client::{ElectrumApi, GetHistoryRes};
|
||||
use bdk::keys::DerivableKey;
|
||||
use bdk::wallet::AddressIndex;
|
||||
use bdk::{FeeRate, KeychainKind};
|
||||
use bitcoin::{Network, Script};
|
||||
use reqwest::Url;
|
||||
|
@ -255,7 +256,7 @@ where
|
|||
.wallet
|
||||
.lock()
|
||||
.await
|
||||
.get_new_address()
|
||||
.get_address(AddressIndex::New)
|
||||
.context("Failed to get new Bitcoin address")?;
|
||||
|
||||
Ok(address)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue