Local Commit Published
data class LocalCommitPublished(commitTx: Transaction, claimMainDelayedOutputTx: Transactions.TransactionWithInputInfo.ClaimLocalDelayedOutputTx?, htlcTxs: Map<OutPoint, Transactions.TransactionWithInputInfo.HtlcTx?>, claimHtlcDelayedTxs: List<Transactions.TransactionWithInputInfo.ClaimLocalDelayedOutputTx>, claimAnchorTxs: List<Transactions.TransactionWithInputInfo.ClaimAnchorOutputTx>, irrevocablySpent: Map<OutPoint, Transaction>)
Content copied to clipboard
Details about a force-close where we published our commitment.
Parameters
commit Tx
commitment tx.
claim Main Delayed Output Tx
tx claiming our main output (if we have one).
htlc Txs
txs claiming HTLCs. There will be one entry for each pending HTLC. The value will be null only for incoming HTLCs for which we don't have the preimage (we can't claim them yet).
claim Htlc Delayed Txs
3rd-stage txs (spending the output of HTLC txs).
claim Anchor Txs
txs spending anchor outputs to bump the feerate of the commitment tx (if applicable).
irrevocably Spent
map of relevant outpoints that have been spent and the confirmed transaction that spends them.
Constructors
LocalCommitPublished
Link copied to clipboard
fun LocalCommitPublished(commitTx: Transaction, claimMainDelayedOutputTx: Transactions.TransactionWithInputInfo.ClaimLocalDelayedOutputTx? = null, htlcTxs: Map<OutPoint, Transactions.TransactionWithInputInfo.HtlcTx?> = emptyMap(), claimHtlcDelayedTxs: List<Transactions.TransactionWithInputInfo.ClaimLocalDelayedOutputTx> = emptyList(), claimAnchorTxs: List<Transactions.TransactionWithInputInfo.ClaimAnchorOutputTx> = emptyList(), irrevocablySpent: Map<OutPoint, Transaction> = emptyMap())
Content copied to clipboard
Functions
is Confirmed
Link copied to clipboard
is Htlc Success
Link copied to clipboard
is Htlc Timeout
Link copied to clipboard
update
Link copied to clipboard
In CLOSING state, when we are notified that a transaction has been confirmed, we check if this tx belongs in the local commit scenario and keep track of it.
Properties
claimAnchorTxs
Link copied to clipboard
val claimAnchorTxs: List<Transactions.TransactionWithInputInfo.ClaimAnchorOutputTx>
Content copied to clipboard
claimHtlcDelayedTxs
Link copied to clipboard
val claimHtlcDelayedTxs: List<Transactions.TransactionWithInputInfo.ClaimLocalDelayedOutputTx>
Content copied to clipboard
claimMainDelayedOutputTx
Link copied to clipboard
val claimMainDelayedOutputTx: Transactions.TransactionWithInputInfo.ClaimLocalDelayedOutputTx? = null
Content copied to clipboard
htlcTxs
Link copied to clipboard
val htlcTxs: Map<OutPoint, Transactions.TransactionWithInputInfo.HtlcTx?>
Content copied to clipboard
irrevocablySpent
Link copied to clipboard