lnd/graph/db
Elle Mouton bfb12b1d81 graph/db: remove address loading from cached node iteration
ForEachNodeCached is now only used for topology-oriented traversal,
so the address-loading option forced one autopilot scoring path to
bypass the in-memory graph cache for data it did not consume. Remove
the withAddrs parameter and the associated SQL/KV address plumbing
so cached node iteration can consistently use the graph cache when
it is loaded.

Autopilot still requires peer addresses before opening channels.
That filtering remains in Agent.openChans via ForEachNode, where the
selected candidates' addresses are collected for ConnectToPeer. The
trade-off is that ForEachNodesChannels no longer excludes
addressless nodes from graph-wide scoring inputs such as median
channel size or centrality, which also feed lncli getnetworkinfo
statistics like graph diameter. In practice the only addressless
nodes our local view tends to know about are nodes with no public
channels (e.g. our own node or peers we share only private channels
with), so the impact on the reported stats should be negligible.
Active channel candidates remain address-filtered before dialing.
2026-05-07 16:29:12 -07:00
..
migration1 graph/db/migration1: fix defer commit/rollback in test tx executor 2026-02-25 18:52:34 +01:00
models graph/db: honor taproot feature bit in v1 funding script construction 2026-03-27 14:19:18 +02:00
addr.go graph/db+chanbackup: dns add encoding/decoding for persistence 2025-09-03 01:11:35 +00:00
addr_test.go graph/db: migrate tests from Fatal to require helpers 2026-02-25 11:14:55 +02:00
benchmark_test.go graph/db: remove address loading from cached node iteration 2026-05-07 16:29:12 -07:00
channel_cache.go graph/db: version channelCache by gossip version 2026-02-20 08:46:57 +02:00
channel_cache_test.go graph/db: migrate tests from Fatal to require helpers 2026-02-25 11:14:55 +02:00
codec.go channeldb/graphdb: move outpoint ser/deser funcs to graphdb 2024-11-28 13:34:08 +02:00
errors.go graph/db: let IsZombieEdge return an error 2025-06-26 10:19:51 +02:00
graph.go graph/db: remove address loading from cached node iteration 2026-05-07 16:29:12 -07:00
graph_cache.go graph/db: refactor CachedEdgePolicy to use explicit boolean fields 2026-02-13 07:21:24 +02:00
graph_cache_state.go graph/db: allow async cache population 2026-03-24 09:49:23 +02:00
graph_cache_test.go graph/db: refactor CachedEdgePolicy to use explicit boolean fields 2026-02-13 07:21:24 +02:00
graph_test.go graph/db: remove address loading from cached node iteration 2026-05-07 16:29:12 -07:00
interfaces.go graph/db: remove address loading from cached node iteration 2026-05-07 16:29:12 -07:00
kv_store.go graph/db: remove address loading from cached node iteration 2026-05-07 16:29:12 -07:00
kv_store_features_test.go graphdb: fix backwards-compat for channel edge feature deserialization 2026-02-03 09:12:04 -08:00
log.go graph/db+log: use v2 logger for graph subsystem 2025-07-29 11:34:47 +02:00
notifications.go graphdb: thread topology update context 2026-02-25 16:11:47 +02:00
options.go graph/db: version NodeUpdatesInHorizon and ChanUpdatesInHorizon 2026-03-31 09:14:49 +02:00
reject_cache.go graph/db: add versioned HasChannelEdge method 2026-02-13 07:21:24 +02:00
reject_cache_test.go graph/db: migrate tests from Fatal to require helpers 2026-02-25 11:14:55 +02:00
setup_test.go refactor: move graph related DB code to graph/db from channeldb 2024-11-28 13:36:13 +02:00
sql_store.go graph/db: remove address loading from cached node iteration 2026-05-07 16:29:12 -07:00
test_kvdb.go graph/db: add helper variable for tests 2026-02-13 07:21:21 +02:00
test_postgres.go graph/db: add helper variable for tests 2026-02-13 07:21:21 +02:00
test_sqlite.go graph/db: add helper variable for tests 2026-02-13 07:21:21 +02:00