Skip to content

Commit 25c3523

Browse files
committed
f BDK: Account for ChainPosition API changes
1 parent 4888936 commit 25c3523

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/wallet/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ use lightning::util::message_signing;
2828
use lightning_invoice::RawBolt11Invoice;
2929

3030
use bdk_chain::spk_client::{FullScanRequest, SyncRequest};
31-
use bdk_chain::ChainPosition;
3231
use bdk_wallet::{Balance, KeychainKind, PersistedWallet, SignOptions, Update};
3332

3433
use bitcoin::blockdata::constants::WITNESS_SCALE_FACTOR;
@@ -527,7 +526,7 @@ where
527526
let mut utxos = Vec::new();
528527
let confirmed_txs: Vec<Txid> = locked_wallet
529528
.transactions()
530-
.filter(|t| matches!(t.chain_position, ChainPosition::Confirmed(_)))
529+
.filter(|t| t.chain_position.is_confirmed())
531530
.map(|t| t.tx_node.txid)
532531
.collect();
533532
let unspent_confirmed_utxos =

0 commit comments

Comments
 (0)