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 @@ -466,12 +466,13 @@ fn test_electrum_syncs() {
466
466
let block_hash = tx_res. info . blockhash . unwrap ( ) ;
467
467
let tx = tx_res. transaction ( ) . unwrap ( ) ;
468
468
let prev_outpoint = tx. input . first ( ) . unwrap ( ) . previous_output ;
469
- let prev_tx = bitcoind. client . get_transaction ( & prev_outpoint. txid ,
470
- None ) . unwrap ( ) . transaction ( ) . unwrap ( ) ;
469
+ let prev_tx = bitcoind. client . get_transaction ( & prev_outpoint. txid , None ) . unwrap ( ) . transaction ( )
470
+ . unwrap ( ) ;
471
471
let prev_script_pubkey = prev_tx. output [ prev_outpoint. vout as usize ] . script_pubkey . clone ( ) ;
472
- let output = WatchedOutput { block_hash : Some ( block_hash) , outpoint : OutPoint {
473
- txid : prev_outpoint. txid , index : prev_outpoint. vout as u16 } ,
474
- script_pubkey : prev_script_pubkey } ;
472
+ let output = WatchedOutput { block_hash : Some ( block_hash) ,
473
+ outpoint : OutPoint { txid : prev_outpoint. txid , index : prev_outpoint. vout as u16 } ,
474
+ script_pubkey : prev_script_pubkey
475
+ } ;
475
476
476
477
tx_sync. register_output ( output) ;
477
478
tx_sync. sync ( vec ! [ & confirmable] ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments