nodes[0]
.node
.force_close_broadcasting_latest_txn(
- &ChannelId::v1_from_funding_outpoint(OutPoint { txid: tx.txid(), index: 0 }),
+ &ChannelId::v1_from_funding_outpoint(OutPoint {
+ txid: tx.compute_txid(),
+ index: 0,
+ }),
&nodes[1].node.get_our_node_id(),
error_message.to_string(),
)
get_event_msg!(nodes[1], MessageSendEvent::SendChannelUpdate, node_0_id);
let broadcast_funding =
nodes[0].tx_broadcaster.txn_broadcasted.lock().unwrap().pop().unwrap();
- assert_eq!(broadcast_funding.txid(), funding_tx.txid());
+ assert_eq!(broadcast_funding.compute_txid(), funding_tx.compute_txid());
assert!(nodes[0].tx_broadcaster.txn_broadcasted.lock().unwrap().is_empty());
if !std::thread::panicking() {
let sweep_tx_0 = nodes[0].tx_broadcaster.txn_broadcasted.lock().unwrap().pop().unwrap();
match tracked_output.status {
OutputSpendStatus::PendingFirstConfirmation { latest_spending_tx, .. } => {
- assert_eq!(sweep_tx_0.txid(), latest_spending_tx.txid());
+ assert_eq!(sweep_tx_0.compute_txid(), latest_spending_tx.compute_txid());
},
_ => panic!("Unexpected status"),
}
let sweep_tx_1 = nodes[0].tx_broadcaster.txn_broadcasted.lock().unwrap().pop().unwrap();
match tracked_output.status {
OutputSpendStatus::PendingFirstConfirmation { latest_spending_tx, .. } => {
- assert_eq!(sweep_tx_1.txid(), latest_spending_tx.txid());
+ assert_eq!(sweep_tx_1.compute_txid(), latest_spending_tx.compute_txid());
},
_ => panic!("Unexpected status"),
}
let sweep_tx_2 = nodes[0].tx_broadcaster.txn_broadcasted.lock().unwrap().pop().unwrap();
match tracked_output.status {
OutputSpendStatus::PendingFirstConfirmation { latest_spending_tx, .. } => {
- assert_eq!(sweep_tx_2.txid(), latest_spending_tx.txid());
+ assert_eq!(sweep_tx_2.compute_txid(), latest_spending_tx.compute_txid());
},
_ => panic!("Unexpected status"),
}
let tracked_output = nodes[0].sweeper.tracked_spendable_outputs().first().unwrap().clone();
match tracked_output.status {
OutputSpendStatus::PendingThresholdConfirmations { latest_spending_tx, .. } => {
- assert_eq!(sweep_tx_2.txid(), latest_spending_tx.txid());
+ assert_eq!(sweep_tx_2.compute_txid(), latest_spending_tx.compute_txid());
},
_ => panic!("Unexpected status"),
}
let tracked_output = nodes[0].sweeper.tracked_spendable_outputs().first().unwrap().clone();
match tracked_output.status {
OutputSpendStatus::PendingThresholdConfirmations { latest_spending_tx, .. } => {
- assert_eq!(sweep_tx_2.txid(), latest_spending_tx.txid());
+ assert_eq!(sweep_tx_2.compute_txid(), latest_spending_tx.compute_txid());
},
_ => panic!("Unexpected status"),
}