process
suspend fun process(channelId: ByteVector32, action: ChannelAction.Storage.StoreIncomingAmount)
Content copied to clipboard
Save the "received-with" details of an incoming amount.
for a pay-to-open origin, we only save the id of the channel that was created for this payment.
for a swap-in origin, a new incoming payment must be created. We use the channel id to generate the payment's preimage.
for unknown origin, the amount is handled as a swap-in coming from an unknown address.
suspend fun process(htlc: UpdateAddHtlc, currentBlockHeight: Int): IncomingPaymentHandler.ProcessAddResult
Content copied to clipboard
Process an incoming htlc. Before calling this, the htlc must be committed and ack-ed by both sides.
Return
A result that indicates whether or not the packet was accepted, rejected, or still pending (as the case may be for multipart payments). Also includes the list of actions to be queued.
suspend fun process(payToOpenRequest: PayToOpenRequest, currentBlockHeight: Int): IncomingPaymentHandler.ProcessAddResult
Content copied to clipboard
Process an incoming pay-to-open request. This is very similar to the processing of an htlc.