PaymentSucceeded

data class PaymentSucceeded(request: SendPayment, preimage: ByteVector32, parts: List<OutgoingPayment.Part>, pending: Map<UUID, Pair<OutgoingPayment.Part, SharedSecrets>>) : OutgoingPaymentHandler.PaymentAttempt

Once we receive a first fulfill for a child payment, we can consider that the whole payment succeeded (because we received the payment preimage that we can use as a proof of payment). Once we're in that state, we wait for all the pending child payments to fulfill.

Parameters

request

payment request containing the total amount to send.

preimage

payment preimage.

parts

fulfilled child payments.

pending

pending child payments (we are waiting for them to be fulfilled downstream).

Constructors

PaymentSucceeded
Link copied to clipboard
common
fun PaymentSucceeded(request: SendPayment, preimage: ByteVector32, parts: List<OutgoingPayment.Part>, pending: Map<UUID, Pair<OutgoingPayment.Part, SharedSecrets>>)

Functions

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

Properties

fees
Link copied to clipboard
common
open override val fees: MilliSatoshi
parts
Link copied to clipboard
common
val parts: List<OutgoingPayment.Part>
pending
Link copied to clipboard
common
open override val pending: Map<UUID, Pair<OutgoingPayment.Part, SharedSecrets>>
preimage
Link copied to clipboard
common
val preimage: ByteVector32
request
Link copied to clipboard
common
open override val request: SendPayment