Remote Commit Published
data class RemoteCommitPublished(commitTx: Transaction, claimMainOutputTx: Transactions.TransactionWithInputInfo.ClaimRemoteCommitMainOutputTx?, claimHtlcTxs: Map<OutPoint, Transactions.TransactionWithInputInfo.ClaimHtlcTx?>, claimAnchorTxs: List<Transactions.TransactionWithInputInfo.ClaimAnchorOutputTx>, irrevocablySpent: Map<OutPoint, Transaction>)
Content copied to clipboard
Details about a force-close where they published their commitment.
Parameters
commit Tx
commitment tx.
claim Main Output Tx
tx claiming our main output (if we have one).
claim 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 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
RemoteCommitPublished
Link copied to clipboard
fun RemoteCommitPublished(commitTx: Transaction, claimMainOutputTx: Transactions.TransactionWithInputInfo.ClaimRemoteCommitMainOutputTx? = null, claimHtlcTxs: Map<OutPoint, Transactions.TransactionWithInputInfo.ClaimHtlcTx?> = emptyMap(), claimAnchorTxs: List<Transactions.TransactionWithInputInfo.ClaimAnchorOutputTx> = emptyList(), irrevocablySpent: Map<OutPoint, Transaction> = emptyMap())
Content copied to clipboard
Functions
is Claim Htlc Success
Link copied to clipboard
is Claim Htlc Timeout
Link copied to clipboard
is Confirmed
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 remote commit scenario and keep track of it.
Properties
claimAnchorTxs
Link copied to clipboard
val claimAnchorTxs: List<Transactions.TransactionWithInputInfo.ClaimAnchorOutputTx>
Content copied to clipboard
claimHtlcTxs
Link copied to clipboard
val claimHtlcTxs: Map<OutPoint, Transactions.TransactionWithInputInfo.ClaimHtlcTx?>
Content copied to clipboard
claimMainOutputTx
Link copied to clipboard
val claimMainOutputTx: Transactions.TransactionWithInputInfo.ClaimRemoteCommitMainOutputTx? = null
Content copied to clipboard
irrevocablySpent
Link copied to clipboard