Skip to content

Commit eb3909d

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 67011b3 commit eb3909d

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
bdk_redb = { version = "0.1.0", optional = true }
3030
shlex = { version = "1.3.0", optional = true }
3131
tracing = "0.1.41"

src/handlers.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ use {crate::utils::BlockchainClient::Esplora, bdk_esplora::EsploraAsyncExt};
7474
#[cfg(feature = "rpc")]
7575
use {
7676
crate::utils::BlockchainClient::RpcClient,
77-
bdk_bitcoind_rpc::{Emitter, bitcoincore_rpc::RpcApi},
77+
bdk_bitcoind_rpc::{Emitter, NO_EXPECTED_MEMPOOL_TXS, bitcoincore_rpc::RpcApi},
7878
bdk_wallet::chain::{BlockId, CanonicalizationParams, CheckPoint},
7979
};
8080

@@ -400,8 +400,12 @@ pub(crate) async fn handle_online_wallet_subcommand(
400400
height: 0,
401401
hash: genesis_block.block_hash(),
402402
});
403-
let mut emitter =
404-
Emitter::new(&*client, genesis_cp.clone(), genesis_cp.height(), [].iter());
403+
let mut emitter = Emitter::new(
404+
&*client,
405+
genesis_cp.clone(),
406+
genesis_cp.height(),
407+
NO_EXPECTED_MEMPOOL_TXS,
408+
);
405409

406410
while let Some(block_event) = emitter.next_block()? {
407411
if block_event.block_height() % 10_000 == 0 {
@@ -423,7 +427,7 @@ pub(crate) async fn handle_online_wallet_subcommand(
423427
}
424428

425429
let mempool_txs = emitter.mempool()?;
426-
wallet.apply_unconfirmed_txs(mempool_txs.new_txs.into_iter());
430+
wallet.apply_unconfirmed_txs(mempool_txs.update);
427431
}
428432
#[cfg(feature = "cbf")]
429433
KyotoClient { client } => {
@@ -503,7 +507,7 @@ pub(crate) async fn handle_online_wallet_subcommand(
503507
}
504508

505509
let mempool_txs = emitter.mempool()?;
506-
wallet.apply_unconfirmed_txs(mempool_txs.new_txs.into_iter());
510+
wallet.apply_unconfirmed_txs(mempool_txs.update);
507511
}
508512
#[cfg(feature = "cbf")]
509513
KyotoClient { client } => {

0 commit comments

Comments
 (0)