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 support for the trampoline failure messages added to the BOLTs.
We also add support for encrypting failures e2e using the trampoline
shared secrets on top of the outer onion shared secrets.
Copy file name to clipboardExpand all lines: modules/core/src/commonMain/kotlin/fr/acinq/lightning/channel/ChannelException.kt
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,6 @@
1
1
packagefr.acinq.lightning.channel
2
2
3
-
importfr.acinq.bitcoin.BlockHash
4
-
importfr.acinq.bitcoin.ByteVector32
5
-
importfr.acinq.bitcoin.Satoshi
6
-
importfr.acinq.bitcoin.TxId
3
+
importfr.acinq.bitcoin.*
7
4
importfr.acinq.lightning.CltvExpiry
8
5
importfr.acinq.lightning.CltvExpiryDelta
9
6
importfr.acinq.lightning.MilliSatoshi
@@ -87,7 +84,7 @@ data class CannotSignDisconnected (override val channelId: Byte
87
84
data classUnexpectedRevocation (overridevalchannelId:ByteVector32) : ChannelException(channelId, "received unexpected RevokeAndAck message")
88
85
data classInvalidRevocation (overridevalchannelId:ByteVector32) : ChannelException(channelId, "invalid revocation")
89
86
data classInvalidFailureCode (overridevalchannelId:ByteVector32) : ChannelException(channelId, "UpdateFailMalformedHtlc message doesn't have BADONION bit set")
data classCannotDecryptFailure (overridevalchannelId:ByteVector32) : ChannelException(channelId, "cannot decrypt failure packet")
91
88
data classPleasePublishYourCommitment (overridevalchannelId:ByteVector32) : ChannelException(channelId, "please publish your local commitment")
92
89
data classCommandUnavailableInThisState (overridevalchannelId:ByteVector32, valstate:String) : ChannelException(channelId, "cannot execute command in state=$state")
93
90
data classForbiddenDuringSplice (overridevalchannelId:ByteVector32, valcommand:String?) : ChannelException(channelId, "cannot process $command while splicing")
Copy file name to clipboardExpand all lines: modules/core/src/commonMain/kotlin/fr/acinq/lightning/payment/OutgoingPaymentFailure.kt
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ sealed class FinalFailure {
29
29
data objectNoAvailableChannels : FinalFailure() { overridefuntoString(): String="payment could not be sent through existing channels, check individual failures for more details" }
30
30
data objectInsufficientBalance : FinalFailure() { overridefuntoString(): String="not enough funds in wallet to afford payment" }
31
31
data objectRecipientUnreachable : FinalFailure() { overridefuntoString(): String="the recipient was offline or did not have enough liquidity to receive the payment" }
32
+
data objectRecipientRejectedPayment : FinalFailure() { overridefuntoString(): String="the recipient rejected the payment" }
32
33
data objectRetryExhausted: FinalFailure() { overridefuntoString(): String="payment attempts exhausted without success" }
33
34
data objectWalletRestarted: FinalFailure() { overridefuntoString(): String="wallet restarted while a payment was ongoing" }
0 commit comments