Revoked Commit Published
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>)
Content copied to clipboard
Details about a force-close where they published one of their revoked commitments.
Parameters
commit Tx
revoked commitment tx.
claim Main Output Tx
tx claiming our main output (if we have one).
main Penalty Tx
penalty tx claiming their main output (if they have one).
htlc Penalty Txs
penalty txs claiming every HTLC output.
claim Htlc Delayed Penalty Txs
penalty txs claiming the output of their HTLC txs (if they managed to get them confirmed before our htlcPenaltyTxs).
irrevocably Spent
map of relevant outpoints that have been spent and the confirmed transaction that spends them.
Constructors
RevokedCommitPublished
Link copied to clipboard
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())
Content copied to clipboard
Functions
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 revoked commit scenario and keep track of it.
Properties
claimHtlcDelayedPenaltyTxs
Link copied to clipboard
val claimHtlcDelayedPenaltyTxs: List<Transactions.TransactionWithInputInfo.ClaimHtlcDelayedOutputPenaltyTx>
Content copied to clipboard
claimMainOutputTx
Link copied to clipboard
val claimMainOutputTx: Transactions.TransactionWithInputInfo.ClaimRemoteCommitMainOutputTx? = null
Content copied to clipboard
htlcPenaltyTxs
Link copied to clipboard
val htlcPenaltyTxs: List<Transactions.TransactionWithInputInfo.HtlcPenaltyTx>
Content copied to clipboard
irrevocablySpent
Link copied to clipboard
mainPenaltyTx
Link copied to clipboard
val mainPenaltyTx: Transactions.TransactionWithInputInfo.MainPenaltyTx? = null
Content copied to clipboard
remotePerCommitmentSecret
Link copied to clipboard