multi: add zeroconfacceptor that default rejects if no rpc acceptors

This is a safety mechanism so that zero-conf channels are not accepted
by default if no rpc acceptor exists.
This commit is contained in:
eugene committed 2022-08-12 16:30:42 -04:00
1 parent a1cd7734d8
commit c2a4a9adbc
8 files changed
+224 -11

No files matched your search

+2 -2
View File
@@ -612,7 +612,7 @@ type rpcServer struct {
// chanPredicate is used in the bidirectional ChannelAcceptor streaming
// method.
chanPredicate *chanacceptor.ChainedAcceptor
chanPredicate chanacceptor.MultiplexAcceptor
quit chan struct{}
@@ -676,7 +676,7 @@ func newRPCServer(cfg *Config, interceptorChain *rpcperms.InterceptorChain,
func (r *rpcServer) addDeps(s *server, macService *macaroons.Service,
subServerCgs *subRPCServerConfigs, atpl *autopilot.Manager,
invoiceRegistry *invoices.InvoiceRegistry, tower *watchtower.Standalone,
chanPredicate *chanacceptor.ChainedAcceptor) error {
chanPredicate chanacceptor.MultiplexAcceptor) error {
// Set up router rpc backend.
selfNode, err := s.graphDB.SourceNode()