Skip to content

Commit

Permalink
f Fix line wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Nov 8, 2023
1 parent 32833f2 commit 1824514
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lightning-transaction-sync/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,12 +468,13 @@ fn test_electrum_syncs() {
let block_hash = tx_res.info.blockhash.unwrap();
let tx = tx_res.transaction().unwrap();
let prev_outpoint = tx.input.first().unwrap().previous_output;
let prev_tx = bitcoind.client.get_transaction(&prev_outpoint.txid,
None).unwrap().transaction().unwrap();
let prev_tx = bitcoind.client.get_transaction(&prev_outpoint.txid, None).unwrap().transaction()
.unwrap();
let prev_script_pubkey = prev_tx.output[prev_outpoint.vout as usize].script_pubkey.clone();
let output = WatchedOutput { block_hash: Some(block_hash), outpoint: OutPoint {
txid: prev_outpoint.txid, index: prev_outpoint.vout as u16 },
script_pubkey: prev_script_pubkey };
let output = WatchedOutput { block_hash: Some(block_hash),
outpoint: OutPoint { txid: prev_outpoint.txid, index: prev_outpoint.vout as u16 },
script_pubkey: prev_script_pubkey
};

tx_sync.register_output(output);
tx_sync.sync(vec![&confirmable]).unwrap();
Expand Down

0 comments on commit 1824514

Please sign in to comment.