Commitment Output Link
data class CommitmentOutputLink<T : CommitmentOutput>(output: TxOut, redeemScript: List<ScriptElt>, commitmentOutput: T) : Comparable<Transactions.CommitmentOutputLink<T>>
Content copied to clipboard
Represent a link between a commitment spec item (to-local, to-remote, htlc) and the actual output in the commit tx
Parameters
output
transaction output
redeem Script
redeem script that matches this output (most of them are p2wsh)
commitment Output
commitment spec item this output is built from
Constructors
CommitmentOutputLink
Link copied to clipboard
fun <T : CommitmentOutput> CommitmentOutputLink(output: TxOut, redeemScript: List<ScriptElt>, commitmentOutput: T)
Content copied to clipboard
Functions
compare To
Link copied to clipboard
open operator override fun compareTo(other: Transactions.CommitmentOutputLink<T>): Int
Content copied to clipboard
We sort HTLC outputs according to BIP69 + CLTV as tie-breaker for offered HTLC, we do this only for the outgoing HTLC because we must agree with the remote on the order of HTLC-Timeout transactions even for identical HTLC outputs. See https://github.com/lightningnetwork/lightning-rfc/issues/448#issuecomment-432074187.