CommitmentOutputLink

data class CommitmentOutputLink<T : CommitmentOutput>(output: TxOut, redeemScript: List<ScriptElt>, commitmentOutput: T) : Comparable<Transactions.CommitmentOutputLink<T>>

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

redeemScript

redeem script that matches this output (most of them are p2wsh)

commitmentOutput

commitment spec item this output is built from

Constructors

CommitmentOutputLink
Link copied to clipboard
common
fun <T : CommitmentOutput> CommitmentOutputLink(output: TxOut, redeemScript: List<ScriptElt>, commitmentOutput: T)

Functions

compareTo
Link copied to clipboard
common
open operator override fun compareTo(other: Transactions.CommitmentOutputLink<T>): Int

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.

Properties

commitmentOutput
Link copied to clipboard
common
val commitmentOutput: T
output
Link copied to clipboard
common
val output: TxOut
redeemScript
Link copied to clipboard
common
val redeemScript: List<ScriptElt>