File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -282,23 +282,21 @@ mod tests {
282
282
// Assert there are no errors when bumping the fee
283
283
assert ! ( bump_fee. errors. is_empty( ) ) ;
284
284
285
- // Step 4: Generate 100 blocks to confirm the transaction and bump fee transaction
285
+ // Step 4: Generate 100 blocks to confirm the bump fee transaction
286
286
bitcoin_client. rpc . generate_to_address ( 100 , & to_addr) . unwrap ( ) ;
287
287
288
- // Check the original transaction's status
288
+ // Check the original transaction
289
289
let tx_info = bitcoin_client. rpc . get_transaction ( & txid, None ) . unwrap ( ) ;
290
290
291
291
// Assert that the original transaction has negative confirmations
292
292
assert ! ( tx_info. info. confirmations. is_negative( ) ) ;
293
293
294
- // Check the bumped fee transaction's status (should now be confirmed)
294
+ // Get the bumped fee transaction's
295
295
let tx_info = bitcoin_client. rpc . get_transaction ( & bump_fee. txid . unwrap ( ) , None ) . unwrap ( ) ;
296
296
297
- // Assert that the bumped fee transaction has confirmations (i.e., it has been confirmed in
298
- // the blockchain)
297
+ // Assert that the bumped fee transaction has confirmations
299
298
assert ! ( tx_info. info. confirmations. is_positive( ) ) ;
300
299
301
- // Test successfully passes if all assertions hold true
302
300
Ok ( ( ) )
303
301
}
304
302
}
You can’t perform that action at this time.
0 commit comments