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
Implement a prototype for liquidity ads, compatible with ACINQ/eclair#2550
Note that we only implement the buyer side, which limits testing.
The specification is available here: lightning/bolts#878
We currently don't add CLTV locks to the commitment transactions, for simplicity's sake.
Copy file name to clipboardExpand all lines: src/commonMain/kotlin/fr/acinq/lightning/channel/ChannelException.kt
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,10 @@ data class MissingChannelType (override val channelId: Byte
25
25
data classDustLimitTooSmall (overridevalchannelId:ByteVector32, valdustLimit:Satoshi, valmin:Satoshi) : ChannelException(channelId, "dustLimit=$dustLimit is too small (min=$min)")
26
26
data classDustLimitTooLarge (overridevalchannelId:ByteVector32, valdustLimit:Satoshi, valmax:Satoshi) : ChannelException(channelId, "dustLimit=$dustLimit is too large (max=$max)")
27
27
data classToSelfDelayTooHigh (overridevalchannelId:ByteVector32, valtoSelfDelay:CltvExpiryDelta, valmax:CltvExpiryDelta) : ChannelException(channelId, "unreasonable to_self_delay=$toSelfDelay (max=$max)")
28
+
data classMissingLiquidityAds (overridevalchannelId:ByteVector32) : ChannelException(channelId, "liquidity ads field is missing")
29
+
data classInvalidLiquidityAdsSig (overridevalchannelId:ByteVector32) : ChannelException(channelId, "liquidity ads signature is invalid")
30
+
data classInvalidLiquidityAdsAmount (overridevalchannelId:ByteVector32, valproposed:Satoshi, valmin:Satoshi) : ChannelException(channelId, "liquidity ads funding amount is too low (expected at least $min, got $proposed)")
31
+
data classInvalidLiquidityRates (overridevalchannelId:ByteVector32) : ChannelException(channelId, "rejecting liquidity ads proposed rates")
28
32
data classChannelFundingError (overridevalchannelId:ByteVector32) : ChannelException(channelId, "channel funding error")
29
33
data classRbfAttemptAborted (overridevalchannelId:ByteVector32) : ChannelException(channelId, "rbf attempt aborted")
30
34
data classSpliceAborted (overridevalchannelId:ByteVector32) : ChannelException(channelId, "splice aborted")
0 commit comments