Payment Aborted
data class PaymentAborted(request: SendPayment, reason: FinalFailure, pending: Map<UUID, Pair<OutgoingPayment.Part, SharedSecrets>>, failures: List<Either<ChannelException, FailureMessage>>) : OutgoingPaymentHandler.PaymentAttempt
Content copied to clipboard
When we exhaust our retry attempts without success or encounter a non-recoverable error, we abort the payment. Once we're in that state, we wait for all the pending child payments to settle.
Parameters
request
payment request containing the total amount to send.
reason
failure reason.
pending
pending child payments (we are waiting for them to be failed downstream).
failures
child payment failures.
Constructors
PaymentAborted
Link copied to clipboard
fun PaymentAborted(request: SendPayment, reason: FinalFailure, pending: Map<UUID, Pair<OutgoingPayment.Part, SharedSecrets>>, failures: List<Either<ChannelException, FailureMessage>>)
Content copied to clipboard
Functions
fail Child
Link copied to clipboard
suspend fun failChild(childId: UUID, failure: Either<ChannelException, FailureMessage>, db: OutgoingPaymentsDb, logger: Logger): Pair<OutgoingPaymentHandler.PaymentAttempt.PaymentAborted, OutgoingPaymentHandler.ProcessFailureResult?>
Content copied to clipboard
is Complete
Link copied to clipboard