htlcswitch: add resume modified HTLC action to switch

Introduce `ResumeModified` action to resume standard behavior of a p2p
message with optional modifications as specified by the client during
interception.
This commit is contained in:
ffranr authored and Oliver Gugger committed 2024-09-05 11:18:15 +02:00
1 parent 8d1059f41c
commit abca4b8234
4 files changed
+91 -1

No files matched your search

+5
View File
@@ -383,6 +383,11 @@ type InterceptedForward interface {
// this htlc which usually means forward it.
Resume() error
// ResumeModified notifies the intention to resume an existing hold
// forward with modified fields.
ResumeModified(outgoingAmountMsat fn.Option[lnwire.MilliSatoshi],
customRecords fn.Option[lnwire.CustomRecords]) error
// Settle notifies the intention to settle an existing hold
// forward with a given preimage.
Settle(lntypes.Preimage) error