PaymentInProgress

data class PaymentInProgress(request: SendPayment, attemptNumber: Int, trampolinePayload: OutgoingPaymentHandler.PaymentAttempt.TrampolinePayload, pending: Map<UUID, Pair<OutgoingPayment.Part, SharedSecrets>>, ignore: Set<ByteVector32>, failures: List<Either<ChannelException, FailureMessage>>) : OutgoingPaymentHandler.PaymentAttempt

While a payment is in progress, we listen to child payments failures. When we receive failures, we retry the failed amount with different routes/fees.

Parameters

request

payment request containing the total amount to send.

attemptNumber

number of failed previous payment attempts.

trampolinePayload

trampoline payload for the current payment attempt.

pending

pending child payments (HTLCs were sent, we are waiting for a fulfill or a failure).

ignore

channels that should be ignored (previously returned an error).

failures

previous child payment failures.

Constructors

PaymentInProgress
Link copied to clipboard
common
fun PaymentInProgress(request: SendPayment, attemptNumber: Int, trampolinePayload: OutgoingPaymentHandler.PaymentAttempt.TrampolinePayload, pending: Map<UUID, Pair<OutgoingPayment.Part, SharedSecrets>>, ignore: Set<ByteVector32>, failures: List<Either<ChannelException, FailureMessage>>)

Functions

isComplete
Link copied to clipboard
common
fun isComplete(): Boolean

Properties

attemptNumber
Link copied to clipboard
common
val attemptNumber: Int
failures
Link copied to clipboard
common
val failures: List<Either<ChannelException, FailureMessage>>
fees
Link copied to clipboard
common
open override val fees: MilliSatoshi
ignore
Link copied to clipboard
common
val ignore: Set<ByteVector32>
pending
Link copied to clipboard
common
open override val pending: Map<UUID, Pair<OutgoingPayment.Part, SharedSecrets>>
request
Link copied to clipboard
common
open override val request: SendPayment
trampolinePayload
Link copied to clipboard