@@ -4,7 +4,7 @@ use std::sync::Arc;
4
4
5
5
use anyhow:: Context ;
6
6
use assert_matches:: assert_matches;
7
- use bdk_chain:: { BlockId , ChainPosition , ConfirmationBlockTime , TxUpdate } ;
7
+ use bdk_chain:: { BlockId , ChainPosition , ConfirmationBlockTime } ;
8
8
use bdk_wallet:: coin_selection:: { self , LargestFirstCoinSelection } ;
9
9
use bdk_wallet:: descriptor:: { calc_checksum, DescriptorError , IntoWalletDescriptor } ;
10
10
use bdk_wallet:: error:: CreateTxError ;
@@ -4254,22 +4254,13 @@ fn test_wallet_transactions_relevant() {
4254
4254
// add not relevant transaction to test wallet
4255
4255
let ( other_external_desc, other_internal_desc) = get_test_tr_single_sig_xprv_and_change_desc ( ) ;
4256
4256
let ( other_wallet, other_txid) = get_funded_wallet ( other_internal_desc, other_external_desc) ;
4257
- let other_tx_node = other_wallet. get_tx ( other_txid) . unwrap ( ) . tx_node ;
4258
- let other_tx_confirmationblocktime = other_tx_node. anchors . iter ( ) . last ( ) . unwrap ( ) ;
4259
- let other_tx_update = TxUpdate {
4260
- txs : vec ! [ other_tx_node. tx] ,
4261
- txouts : Default :: default ( ) ,
4262
- anchors : [ ( * other_tx_confirmationblocktime, other_txid) ] . into ( ) ,
4263
- seen_ats : [ ( other_txid, other_tx_confirmationblocktime. confirmation_time ) ] . into ( ) ,
4264
- } ;
4265
4257
let test_wallet_update = Update {
4266
- last_active_indices : Default :: default ( ) ,
4267
- tx_update : other_tx_update,
4268
- chain : None ,
4258
+ tx_update : other_wallet. tx_graph ( ) . clone ( ) . into ( ) ,
4259
+ ..Default :: default ( )
4269
4260
} ;
4270
4261
test_wallet. apply_update ( test_wallet_update) . unwrap ( ) ;
4271
4262
4272
- // verify transaction from other wallet was added but is not it relevant transactions list.
4263
+ // verify transaction from other wallet was added but is not in relevant transactions list.
4273
4264
let relevant_tx_count_after = test_wallet. transactions ( ) . count ( ) ;
4274
4265
let full_tx_count_after = test_wallet. tx_graph ( ) . full_txs ( ) . count ( ) ;
4275
4266
let canonical_tx_count_after = test_wallet
0 commit comments