Skip to content

Commit 8bc984a

Browse files
authored
Merge pull request #656 from tnull/2025-09-upgrade-bdk-2.2
Bump BDK to 2.2, rust-bitcoin to 0.32.7
2 parents fa9bd15 + e92cada commit 8bc984a

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ lightning-macros = { git = "https://github.com/lightningdevkit/rust-lightning",
7979
bdk_chain = { version = "0.23.0", default-features = false, features = ["std"] }
8080
bdk_esplora = { version = "0.22.0", default-features = false, features = ["async-https-rustls", "tokio"]}
8181
bdk_electrum = { version = "0.23.0", default-features = false, features = ["use-rustls-ring"]}
82-
bdk_wallet = { version = "2.0.0", default-features = false, features = ["std", "keys-bip39"]}
82+
bdk_wallet = { version = "2.2.0", default-features = false, features = ["std", "keys-bip39"]}
8383

8484
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
8585
rustls = { version = "0.23", default-features = false }
8686
rusqlite = { version = "0.31.0", features = ["bundled"] }
87-
bitcoin = "0.32.4"
87+
bitcoin = "0.32.7"
8888
bip39 = "2.0.0"
8989
bip21 = { version = "0.5", features = ["std"], default-features = false }
9090

src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use bdk_chain::bitcoin::psbt::ExtractTxError as BdkExtractTxError;
1111
use bdk_chain::local_chain::CannotConnectError as BdkChainConnectionError;
1212
use bdk_chain::tx_graph::CalculateFeeError as BdkChainCalculateFeeError;
1313
use bdk_wallet::error::CreateTxError as BdkCreateTxError;
14+
#[allow(deprecated)]
1415
use bdk_wallet::signer::SignerError as BdkSignerError;
1516

1617
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
@@ -207,6 +208,7 @@ impl fmt::Display for Error {
207208

208209
impl std::error::Error for Error {}
209210

211+
#[allow(deprecated)]
210212
impl From<BdkSignerError> for Error {
211213
fn from(_: BdkSignerError) -> Self {
212214
Self::OnchainTxSigningFailed

src/wallet/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ use std::str::FromStr;
1111
use std::sync::{Arc, Mutex};
1212

1313
use bdk_chain::spk_client::{FullScanRequest, SyncRequest};
14-
use bdk_wallet::{Balance, KeychainKind, PersistedWallet, SignOptions, Update};
14+
#[allow(deprecated)]
15+
use bdk_wallet::SignOptions;
16+
use bdk_wallet::{Balance, KeychainKind, PersistedWallet, Update};
1517
use bitcoin::address::NetworkUnchecked;
1618
use bitcoin::blockdata::constants::WITNESS_SCALE_FACTOR;
1719
use bitcoin::blockdata::locktime::absolute::LockTime;
@@ -222,6 +224,7 @@ impl Wallet {
222224
Ok(())
223225
}
224226

227+
#[allow(deprecated)]
225228
pub(crate) fn create_funding_transaction(
226229
&self, output_script: ScriptBuf, amount: Amount, confirmation_target: ConfirmationTarget,
227230
locktime: LockTime,
@@ -338,6 +341,7 @@ impl Wallet {
338341
.map_err(|_| Error::InvalidAddress)
339342
}
340343

344+
#[allow(deprecated)]
341345
pub(crate) fn send_to_address(
342346
&self, address: &bitcoin::Address, send_amount: OnchainSendAmount,
343347
fee_rate: Option<FeeRate>,
@@ -647,6 +651,7 @@ impl Wallet {
647651
Ok(utxos)
648652
}
649653

654+
#[allow(deprecated)]
650655
fn get_change_script_inner(&self) -> Result<ScriptBuf, ()> {
651656
let mut locked_wallet = self.inner.lock().unwrap();
652657
let mut locked_persister = self.persister.lock().unwrap();
@@ -659,6 +664,7 @@ impl Wallet {
659664
Ok(address_info.address.script_pubkey())
660665
}
661666

667+
#[allow(deprecated)]
662668
fn sign_psbt_inner(&self, mut psbt: Psbt) -> Result<Transaction, ()> {
663669
let locked_wallet = self.inner.lock().unwrap();
664670

0 commit comments

Comments
 (0)