pub fn commitment_signed_dance_through_cp_raa(
    node_a: &Node<'_, '_, '_>,
    node_b: &Node<'_, '_, '_>,
    fail_backwards: bool,
    includes_claim: bool,
) -> Option<MessageSendEvent>
Expand description

Runs the commitment_signed dance after the initial commitment_signed is delivered through to the initiator’s revoke_and_ack response. i.e. do_main_commitment_signed_dance plus the revoke_and_ack response to it.

An HTLC claim on one channel blocks the RAA channel monitor update for the outbound edge channel until the inbound edge channel preimage monitor update completes. Thus, when checking for channel monitor updates, we need to know if an update_fulfill_htlc was included in the the commitment we’re exchanging. includes_claim provides that information.

Returns any additional message node_b generated in addition to the revoke_and_ack response.