Skip to content

Commit 2322486

Browse files
committed
deps: update bdk_wallet 2.1.0 and related deps
- bdk_wallet to 2.1.0 - bdk_bitcoind_rpc to 0.21.0 - bdk_esplora to 0.22.1 - bdk_kyoto to 0.13.1 - update CHANGELOG
1 parent a46aa9d commit 2322486

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ page. See [DEVELOPMENT_CYCLE.md](DEVELOPMENT_CYCLE.md) for more details.
66
## [Unreleased]
77

88
- Removed MSRV and bumped Rust Edition to 2024
9+
- Updated `bdk_wallet ` to `2.1.0`, `bdk_bitcoind_rpc` to `0.21.0`, `bdk_esplora` to `0.22.1`, `bdk_kyoto` to `0.13.1`
10+
911

1012
## [1.0.0]
1113

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ readme = "README.md"
1212
license = "MIT"
1313

1414
[dependencies]
15-
bdk_wallet = { version = "2.0.0", features = ["rusqlite", "keys-bip39", "compiler", "std"] }
15+
bdk_wallet = { version = "2.1.0", features = ["rusqlite", "keys-bip39", "compiler", "std"] }
1616
clap = { version = "4.5", features = ["derive","env"] }
1717
dirs = { version = "6.0.0" }
1818
env_logger = "0.11.6"
@@ -22,10 +22,10 @@ thiserror = "2.0.11"
2222
tokio = { version = "1", features = ["full"] }
2323

2424
# Optional dependencies
25-
bdk_bitcoind_rpc = { version = "0.20.0", optional = true }
25+
bdk_bitcoind_rpc = { version = "0.21.0", features = ["std"], optional = true }
2626
bdk_electrum = { version = "0.23.0", optional = true }
27-
bdk_esplora = { version = "0.22.0", features = ["async-https", "tokio"], optional = true }
28-
bdk_kyoto = { version = "0.11.0", optional = true }
27+
bdk_esplora = { version = "0.22.1", features = ["async-https", "tokio"], optional = true }
28+
bdk_kyoto = { version = "0.13.1", optional = true }
2929
shlex = { version = "1.3.0", optional = true }
3030
tracing = "0.1.41"
3131
tracing-subscriber = "0.3.19"

src/handlers.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ use {crate::utils::BlockchainClient::Esplora, bdk_esplora::EsploraAsyncExt};
6868
#[cfg(feature = "rpc")]
6969
use {
7070
crate::utils::BlockchainClient::RpcClient,
71-
bdk_bitcoind_rpc::{Emitter, bitcoincore_rpc::RpcApi},
71+
bdk_bitcoind_rpc::{Emitter, NO_EXPECTED_MEMPOOL_TXS, bitcoincore_rpc::RpcApi},
7272
bdk_wallet::chain::{BlockId, CanonicalizationParams, CheckPoint},
7373
};
7474

@@ -394,8 +394,12 @@ pub(crate) async fn handle_online_wallet_subcommand(
394394
height: 0,
395395
hash: genesis_block.block_hash(),
396396
});
397-
let mut emitter =
398-
Emitter::new(&*client, genesis_cp.clone(), genesis_cp.height(), [].iter());
397+
let mut emitter = Emitter::new(
398+
&*client,
399+
genesis_cp.clone(),
400+
genesis_cp.height(),
401+
NO_EXPECTED_MEMPOOL_TXS,
402+
);
399403

400404
while let Some(block_event) = emitter.next_block()? {
401405
if block_event.block_height() % 10_000 == 0 {
@@ -417,7 +421,7 @@ pub(crate) async fn handle_online_wallet_subcommand(
417421
}
418422

419423
let mempool_txs = emitter.mempool()?;
420-
wallet.apply_unconfirmed_txs(mempool_txs.new_txs.into_iter());
424+
wallet.apply_unconfirmed_txs(mempool_txs.update);
421425
}
422426
#[cfg(feature = "cbf")]
423427
KyotoClient { client } => {
@@ -497,7 +501,7 @@ pub(crate) async fn handle_online_wallet_subcommand(
497501
}
498502

499503
let mempool_txs = emitter.mempool()?;
500-
wallet.apply_unconfirmed_txs(mempool_txs.new_txs.into_iter());
504+
wallet.apply_unconfirmed_txs(mempool_txs.update);
501505
}
502506
#[cfg(feature = "cbf")]
503507
KyotoClient { client } => {

0 commit comments

Comments
 (0)