lnd/autopilot
Elle Mouton d0e9042944
autopilot: pass pubkey in channel traversal
ForEachNodesChannels is a topology traversal: its callers only need
the node identity plus channel edges. After removing address loading
from ForEachNodeCached, constructing a Node for this callback is
misleading because Addrs is either unused or empty.

Pass NodeID directly through the interface and update the scoring
and simple graph callers to use that pubkey. This keeps the
address-bearing Node interface on ForEachNode, where autopilot
gathers connectable candidates and their addresses before dialing.
2026-05-12 12:39:51 -07:00
..
agent.go autopilot: fix nil map assignment 2025-09-18 07:37:53 +02:00
agent_constraints.go trivial: Fix spelling errors 2023-09-21 22:35:33 -04:00
agent_constraints_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
agent_test.go autopilot: revert passing ctx to Start methods 2025-05-22 14:14:40 +02:00
betweenness_centrality.go autopilot: continue threading context 2025-05-22 14:14:38 +02:00
betweenness_centrality_test.go multi: context.Background() -> t.Context() 2025-08-30 14:13:44 -03:00
centrality_testdata_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
choice.go multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
choice_test.go chore: fix struct names 2024-04-17 11:19:31 +08:00
combinedattach.go autopilot: update AttachmentHeuristics with context 2025-05-22 14:14:38 +02:00
externalscoreattach.go autopilot: update AttachmentHeuristics with context 2025-05-22 14:14:38 +02:00
externalscoreattach_test.go multi: context.Background() -> t.Context() 2025-08-30 14:13:44 -03:00
graph.go autopilot: pass pubkey in channel traversal 2026-05-12 12:39:51 -07:00
graph_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
interface.go autopilot: pass pubkey in channel traversal 2026-05-12 12:39:51 -07:00
log.go multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
manager.go autopilot: revert passing ctx to Start methods 2025-05-22 14:14:40 +02:00
prefattach.go autopilot: pass pubkey in channel traversal 2026-05-12 12:39:51 -07:00
prefattach_test.go autopilot: pass pubkey in channel traversal 2026-05-12 12:39:51 -07:00
setup_test.go multi: use MakeTestGraph everywhere for test graph creation 2025-05-22 14:14:42 +02:00
simple_graph.go autopilot: pass pubkey in channel traversal 2026-05-12 12:39:51 -07:00
simple_graph_test.go lnrpc+autopilot: add graph diameter calculation 2022-03-07 11:15:47 +01:00
top_centrality.go autopilot: update AttachmentHeuristics with context 2025-05-22 14:14:38 +02:00
top_centrality_test.go multi: context.Background() -> t.Context() 2025-08-30 14:13:44 -03:00