You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add more force-close tests for HTLC settlement (#772)
This commit is importing test updates and refactoring to the closing
helpers from ACINQ/eclair#3040
We don't relay HTLCs, so we don't have an upstream channel to relay
preimages to, but it's important to relay preimages to the payment
handler to correctly mark payments as succeeded (or failed) and store
the proof of payment.
Copy file name to clipboardExpand all lines: modules/core/src/commonMain/kotlin/fr/acinq/lightning/channel/ChannelException.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@ data class FundingTxSpent (override val channelId: Byte
55
55
data classHtlcsTimedOutDownstream (overridevalchannelId:ByteVector32, valhtlcs:Set<UpdateAddHtlc>) : ChannelException(channelId, "one or more htlcs timed out downstream: ids=${htlcs.map { it.id } .joinToString(",")}")
56
56
data classFulfilledHtlcsWillTimeout (overridevalchannelId:ByteVector32, valhtlcs:Set<UpdateAddHtlc>) : ChannelException(channelId, "one or more htlcs that should be fulfilled are close to timing out: ids=${htlcs.map { it.id }.joinToString()}")
57
57
data classHtlcOverriddenByLocalCommit (overridevalchannelId:ByteVector32, valhtlc:UpdateAddHtlc) : ChannelException(channelId, "htlc ${htlc.id} was overridden by local commit")
58
+
data classHtlcOverriddenByRemoteCommit (overridevalchannelId:ByteVector32, valhtlc:UpdateAddHtlc) : ChannelException(channelId, "htlc ${htlc.id} was overridden by remote commit")
58
59
data classFeerateTooSmall (overridevalchannelId:ByteVector32, valremoteFeeratePerKw:FeeratePerKw) : ChannelException(channelId, "remote fee rate is too small: remoteFeeratePerKw=${remoteFeeratePerKw.toLong()}")
59
60
data classFeerateTooDifferent (overridevalchannelId:ByteVector32, vallocalFeeratePerKw:FeeratePerKw, valremoteFeeratePerKw:FeeratePerKw) : ChannelException(channelId, "local/remote feerates are too different: remoteFeeratePerKw=${remoteFeeratePerKw.toLong()} localFeeratePerKw=${localFeeratePerKw.toLong()}")
60
61
data classInvalidCommitmentSignature (overridevalchannelId:ByteVector32, valtxId:TxId) : ChannelException(channelId, "invalid commitment signature: txId=$txId")
0 commit comments