invoicesrpc: create sub server
Sub server implementation is still empty. This is a preparatory step for adding invoice functionality.
This commit is contained in:
11 files changed
+321
-3
No files matched your search
+2
-1
@@ -397,6 +397,7 @@ var _ lnrpc.LightningServer = (*rpcServer)(nil)
|
||||
func newRPCServer(s *server, macService *macaroons.Service,
|
||||
subServerCgs *subRPCServerConfigs, serverOpts []grpc.ServerOption,
|
||||
restServerOpts []grpc.DialOption, atpl *autopilot.Manager,
|
||||
invoiceRegistry *invoices.InvoiceRegistry,
|
||||
tlsCfg *tls.Config) (*rpcServer, error) {
|
||||
|
||||
var (
|
||||
@@ -408,7 +409,7 @@ func newRPCServer(s *server, macService *macaroons.Service,
|
||||
// the dependencies they need are properly populated within each sub
|
||||
// server configuration struct.
|
||||
err := subServerCgs.PopulateDependencies(
|
||||
s.cc, networkDir, macService, atpl,
|
||||
s.cc, networkDir, macService, atpl, invoiceRegistry,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user