File tree 1 file changed +6
-5
lines changed
lightning-transaction-sync/tests
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -468,12 +468,13 @@ fn test_electrum_syncs() {
468
468
let block_hash = tx_res. info . blockhash . unwrap ( ) ;
469
469
let tx = tx_res. transaction ( ) . unwrap ( ) ;
470
470
let prev_outpoint = tx. input . first ( ) . unwrap ( ) . previous_output ;
471
- let prev_tx = bitcoind. client . get_transaction ( & prev_outpoint. txid ,
472
- None ) . unwrap ( ) . transaction ( ) . unwrap ( ) ;
471
+ let prev_tx = bitcoind. client . get_transaction ( & prev_outpoint. txid , None ) . unwrap ( ) . transaction ( )
472
+ . unwrap ( ) ;
473
473
let prev_script_pubkey = prev_tx. output [ prev_outpoint. vout as usize ] . script_pubkey . clone ( ) ;
474
- let output = WatchedOutput { block_hash : Some ( block_hash) , outpoint : OutPoint {
475
- txid : prev_outpoint. txid , index : prev_outpoint. vout as u16 } ,
476
- script_pubkey : prev_script_pubkey } ;
474
+ let output = WatchedOutput { block_hash : Some ( block_hash) ,
475
+ outpoint : OutPoint { txid : prev_outpoint. txid , index : prev_outpoint. vout as u16 } ,
476
+ script_pubkey : prev_script_pubkey
477
+ } ;
477
478
478
479
tx_sync. register_output ( output) ;
479
480
tx_sync. sync ( vec ! [ & confirmable] ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments