mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-18 13:07:58 +02:00
Add an LRU cache to GraphNodeResolver to avoid repeated database lookups when resolving SCIDs to node public keys. The cache stores up to 1000 compressed pubkey entries, which is sufficient for typical onion message forwarding scenarios. This change also introduces a NewGraphNodeResolver constructor to properly initialize the cache, replacing direct struct literal usage. |
||
|---|---|---|
| .. | ||
| actor.go | ||
| actor_test.go | ||
| errors.go | ||
| hop.go | ||
| hop_test.go | ||
| interfaces.go | ||
| log.go | ||
| onion_endpoint.go | ||
| resolver.go | ||
| resolver_test.go | ||
| test_utils.go | ||