Local Commit
data class LocalCommit(index: Long, spec: CommitmentSpec, publishableTxs: PublishableTxs)
Content copied to clipboard
Properties
Extensions
extract Preimages
Link copied to clipboard
fun LocalCommit.extractPreimages(tx: Transaction): Set<Pair<UpdateAddHtlc, ByteVector32>>
Content copied to clipboard
In CLOSING state, any time we see a new transaction, we try to extract a preimage from it in order to fulfill the corresponding incoming htlc in an upstream channel.
timed Out Htlcs
Link copied to clipboard
fun LocalCommit.timedOutHtlcs(localCommitPublished: LocalCommitPublished, localDustLimit: Satoshi, tx: Transaction): Set<UpdateAddHtlc>
Content copied to clipboard
In CLOSING state, when we are notified that a transaction has been confirmed, we analyze it to find out if one or more htlcs have timed out and need to be failed in an upstream channel.