pub fn test_txn_broadcast<'a, 'b, 'c>(
    node: &Node<'a, 'b, 'c>,
    chan: &(ChannelUpdate, ChannelUpdate, ChannelId, Transaction),
    commitment_tx: Option<Transaction>,
    has_htlc_tx: HTLCType,
) -> Vec<Transaction>
Expand description

Tests that the given node has broadcast transactions for the given Channel

First checks that the latest holder commitment tx has been broadcast, unless an explicit commitment_tx is provided, which may be used to test that a remote commitment tx was broadcast and the revoked outputs were claimed.

Next tests that there is (or is not) a transaction that spends the commitment transaction that appears to be the type of HTLC transaction specified in has_htlc_tx.

All broadcast transactions must be accounted for in one of the above three types of we’ll also fail.