invoicesrpc: add HTLC modifier to invoices RPC server

This commit integrates the HTLC modifier service into the
invoices RPC server.
This commit is contained in:
ffranr authored and Oliver Gugger committed 2024-09-19 09:21:37 +02:00
1 parent 481dfe21bc
commit 008d265cdb
4 files changed
+14 -3

No files matched your search

+5
View File
@@ -30,6 +30,11 @@ type Config struct {
// created by the daemon.
InvoiceRegistry *invoices.InvoiceRegistry
// HtlcModifier is a service which intercepts invoice HTLCs during the
// settlement phase, enabling a subscribed client to modify certain
// aspects of those HTLCs.
HtlcModifier invoices.HtlcModifier
// IsChannelActive is used to generate valid hop hints.
IsChannelActive func(chanID lnwire.ChannelID) bool