pub fn do_commitment_signed_dance(
    node_a: &Node<'_, '_, '_>,
    node_b: &Node<'_, '_, '_>,
    commitment_signed: &CommitmentSigned,
    fail_backwards: bool,
    skip_last_step: bool,
)
Expand description

Runs a full commitment_signed dance, delivering a commitment_signed, the responding revoke_and_ack and commitment_signed, and then the final revoke_and_ack response.

If skip_last_step is unset, also checks for the payment failure update for the previous hop on failure or that no new messages are left over on success.