routing: let SelfNode be passed via config

Instead of querying it from the graph since this will be removed in a
future commit.
This commit is contained in:
Elle Mouton committed 2024-07-15 15:13:57 +02:00
1 parent 8c0df98439
commit cf3de72503
4 files changed
+28 -41

No files matched your search

+1
View File
@@ -974,6 +974,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
cfg.Routing.StrictZombiePruning
s.chanRouter, err = routing.New(routing.Config{
SelfNode: selfNode.PubKeyBytes,
RoutingGraph: graphsession.NewRoutingGraph(chanGraph),
Graph: chanGraph,
Chain: cc.ChainIO,