rpcserver+invoicesrpc: alias-aware AddInvoice,AddHoldInvoice rpc

AddInvoice,AddHoldInvoice now issue invoices that include our
peer's aliases. Some extra sanity checks are included to ensure we
don't leak our confirmed SCID for a private channel.
This commit is contained in:
eugene committed 2022-07-07 17:10:29 -04:00
1 parent 1aa9626606
commit 0ba67015da
6 files changed
+117 -17

No files matched your search

+1
View File
@@ -331,6 +331,7 @@ func (s *Server) AddHoldInvoice(ctx context.Context,
Graph: s.cfg.GraphDB,
GenInvoiceFeatures: s.cfg.GenInvoiceFeatures,
GenAmpInvoiceFeatures: s.cfg.GenAmpInvoiceFeatures,
GetAlias: s.cfg.GetAlias,
}
hash, err := lntypes.MakeHash(invoice.Hash)