Skip to content

Commit bee7cb4

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
1 parent 7a71b14 commit bee7cb4

File tree

4 files changed

+32
-25
lines changed

4 files changed

+32
-25
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ page. See [DEVELOPMENT_CYCLE.md](DEVELOPMENT_CYCLE.md) for more details.
55

66
## [Unreleased]
77

8+
- 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`
9+
10+
811
## [1.0.0]
912

1013
- Changed the MSRV to 1.75.0 and bumped the rust edition to 2021

Cargo.lock

Lines changed: 16 additions & 16 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
@@ -13,7 +13,7 @@ readme = "README.md"
1313
license = "MIT"
1414

1515
[dependencies]
16-
bdk_wallet = { version = "2.0.0", features = ["rusqlite", "keys-bip39", "compiler", "std"] }
16+
bdk_wallet = { version = "2.1.0", features = ["rusqlite", "keys-bip39", "compiler", "std"] }
1717
clap = { version = "4.5", features = ["derive","env"] }
1818
dirs = { version = "6.0.0" }
1919
env_logger = "0.11.6"
@@ -23,10 +23,10 @@ thiserror = "2.0.11"
2323
tokio = { version = "1", features = ["full"] }
2424

2525
# Optional dependencies
26-
bdk_bitcoind_rpc = { version = "0.20.0", optional = true }
26+
bdk_bitcoind_rpc = { version = "0.21.0", features = ["std"], optional = true }
2727
bdk_electrum = { version = "0.23.0", optional = true }
28-
bdk_esplora = { version = "0.22.0", features = ["async-https", "tokio"], optional = true }
29-
bdk_kyoto = { version = "0.11.0", optional = true }
28+
bdk_esplora = { version = "0.22.1", features = ["async-https", "tokio"], optional = true }
29+
bdk_kyoto = { version = "0.13.1", optional = true }
3030
shlex = { version = "1.3.0", optional = true }
3131
tracing = "0.1.41"
3232
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::{bitcoincore_rpc::RpcApi, Emitter},
71+
bdk_bitcoind_rpc::{bitcoincore_rpc::RpcApi, Emitter, NO_EXPECTED_MEMPOOL_TXS},
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)