RevokedCommitPublished

data class RevokedCommitPublished(commitTx: Transaction, remotePerCommitmentSecret: PrivateKey, claimMainOutputTx: Transactions.TransactionWithInputInfo.ClaimRemoteCommitMainOutputTx?, mainPenaltyTx: Transactions.TransactionWithInputInfo.MainPenaltyTx?, htlcPenaltyTxs: List<Transactions.TransactionWithInputInfo.HtlcPenaltyTx>, claimHtlcDelayedPenaltyTxs: List<Transactions.TransactionWithInputInfo.ClaimHtlcDelayedOutputPenaltyTx>, irrevocablySpent: Map<OutPoint, Transaction>)

Details about a force-close where they published one of their revoked commitments.

Parameters

commitTx

revoked commitment tx.

claimMainOutputTx

tx claiming our main output (if we have one).

mainPenaltyTx

penalty tx claiming their main output (if they have one).

htlcPenaltyTxs

penalty txs claiming every HTLC output.

claimHtlcDelayedPenaltyTxs

penalty txs claiming the output of their HTLC txs (if they managed to get them confirmed before our htlcPenaltyTxs).

irrevocablySpent

map of relevant outpoints that have been spent and the confirmed transaction that spends them.

Constructors

RevokedCommitPublished
Link copied to clipboard
common
fun RevokedCommitPublished(commitTx: Transaction, remotePerCommitmentSecret: PrivateKey, claimMainOutputTx: Transactions.TransactionWithInputInfo.ClaimRemoteCommitMainOutputTx? = null, mainPenaltyTx: Transactions.TransactionWithInputInfo.MainPenaltyTx? = null, htlcPenaltyTxs: List<Transactions.TransactionWithInputInfo.HtlcPenaltyTx> = emptyList(), claimHtlcDelayedPenaltyTxs: List<Transactions.TransactionWithInputInfo.ClaimHtlcDelayedOutputPenaltyTx> = emptyList(), irrevocablySpent: Map<OutPoint, Transaction> = emptyMap())

Functions

isConfirmed
Link copied to clipboard
common
fun isConfirmed(): Boolean
isDone
Link copied to clipboard
common
fun isDone(): Boolean

A remote commit is considered done when all commitment tx outputs that we can spend have been spent and confirmed (even if the spending tx was not ours).

update
Link copied to clipboard
common
fun update(tx: Transaction): RevokedCommitPublished

In CLOSING state, when we are notified that a transaction has been confirmed, we check if this tx belongs in the revoked commit scenario and keep track of it.

Properties

claimMainOutputTx
Link copied to clipboard
commitTx
Link copied to clipboard
common
val commitTx: Transaction
htlcPenaltyTxs
Link copied to clipboard
irrevocablySpent
Link copied to clipboard
common
val irrevocablySpent: Map<OutPoint, Transaction>
mainPenaltyTx
Link copied to clipboard
common
remotePerCommitmentSecret
Link copied to clipboard
common
val remotePerCommitmentSecret: PrivateKey