Payment Succeeded
data class PaymentSucceeded(request: SendPayment, preimage: ByteVector32, parts: List<OutgoingPayment.Part>, pending: Map<UUID, Pair<OutgoingPayment.Part, SharedSecrets>>) : OutgoingPaymentHandler.PaymentAttempt
Content copied to clipboard
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
fun PaymentSucceeded(request: SendPayment, preimage: ByteVector32, parts: List<OutgoingPayment.Part>, pending: Map<UUID, Pair<OutgoingPayment.Part, SharedSecrets>>)
Content copied to clipboard
Functions
fail Child
Link copied to clipboard
suspend fun failChild(childId: UUID, db: OutgoingPaymentsDb, logger: Logger): Pair<OutgoingPaymentHandler.PaymentAttempt.PaymentSucceeded, OutgoingPaymentHandler.Success?>
Content copied to clipboard
is Complete
Link copied to clipboard
Properties
fees
Link copied to clipboard
parts
Link copied to clipboard
pending
Link copied to clipboard
open override val pending: Map<UUID, Pair<OutgoingPayment.Part, SharedSecrets>>
Content copied to clipboard
request
Link copied to clipboard