script_pubkey: output_script,
}],
};
- funding_output = OutPoint { txid: tx.txid(), index: 0 };
+ funding_output = OutPoint { txid: tx.compute_txid(), index: 0 };
$source
.funding_transaction_generated(
temporary_channel_id,
fn connect_block(&mut self, all_txn: &[Transaction]) {
let mut txdata = Vec::with_capacity(all_txn.len());
for (idx, tx) in all_txn.iter().enumerate() {
- let txid = tx.txid();
+ let txid = tx.compute_txid();
self.txids_confirmed.entry(txid).or_insert_with(|| {
txdata.push((idx + 1, tx));
self.height
if tx.version.0 > 0xff {
break;
}
- let funding_txid = tx.txid();
+ let funding_txid = tx.compute_txid();
if loss_detector.txids_confirmed.get(&funding_txid).is_none() {
let outpoint = OutPoint { txid: funding_txid, index: 0 };
for chan in channelmanager.list_channels() {
panic!();
}
}
- let funding_txid = tx.txid();
+ let funding_txid = tx.compute_txid();
for idx in 0..tx.output.len() {
let outpoint = OutPoint { txid: funding_txid, index: idx as u16 };
pending_funding_signatures.insert(outpoint, tx.clone());