lnd/lncfg
Olaoluwa Osuntokun 67e18e6089
rpc: optimize DescribeGraph by caching the response
Unfortunately, we can't use the graph cache directly here as it doesn't
include all the information we need, since it only includes the minimal
amount of information needed for path finding.

Instead, we use a simple mutex guarded cache that evicts itself after a
certain interval. The default is set small enough that most users
shouldn't really notice. We also provide a way to disable the cache, and
also disable the cache in the itests.

Fixes https://github.com/lightningnetwork/lnd/issues/1232
2021-11-04 15:30:31 -07:00
..
address_test.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
address.go lndcfg: give verbose err when failed to load config 2021-09-29 04:37:05 +08:00
autopilot.go config+lncfg: move config structs to lncfg, drop suffix 2020-05-14 14:37:48 +02:00
bitcoind.go lncfg: add new PrunedNodeMaxPeers config option/flag 2021-04-06 14:55:19 -07:00
btcd.go config+lncfg: move config structs to lncfg, drop suffix 2020-05-14 14:37:48 +02:00
caches.go rpc: optimize DescribeGraph by caching the response 2021-11-04 15:30:31 -07:00
chain.go multi: add signet parameters 2021-05-18 13:06:03 +02:00
cluster.go lnd: integrate leader elector to lnd main 2021-05-04 17:33:08 +02:00
config.go lnd+lncfg: move normalizeNetwork to lncfg 2020-10-29 15:20:00 -04:00
db_test.go bbolt sync-freelist ignored 2021-09-27 06:49:56 +01:00
db.go docs+lncfg+sample-lnd.conf: add no-graph-cache option 2021-10-22 09:32:47 +02:00
gossip.go lncfg: expose channel update rate limiting options 2021-03-16 11:42:29 -07:00
healthcheck.go multi: add tor connection healthcheck 2021-10-11 13:11:55 +08:00
interface.go lncfg/interface: define Validator iface + variadic Validate 2019-04-01 16:33:50 -07:00
invoices.go multi: add height-based invoice expiry 2021-05-11 08:45:29 +02:00
monitoring_off.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
monitoring_on.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
neutrino.go lncfg: add config options for new neutrino options 2021-04-29 13:56:17 -07:00
protocol_experimental_off.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
protocol_experimental_on.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
protocol_legacy_off.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
protocol_legacy_on.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
protocol_rpctest.go lncfg: add protocol config option for script enforced lease support 2021-10-19 18:30:12 -07:00
protocol.go lncfg: add protocol config option for script enforced lease support 2021-10-19 18:30:12 -07:00
remotesigner.go multi: add remote RPC signing wallet implementation 2021-10-14 15:42:49 +02:00
routing.go routing: add strict pruning as new flag, default for neutrino 2021-04-21 13:56:29 -05:00
rpcmiddleware.go config+sample-lnd.conf+lncfg: add RPC middleware config 2021-09-20 13:05:47 +02:00
tor.go config+lnd+tor: Update naming 2021-08-01 14:28:32 +02:00
watchtower.go lncfg: add Watchtower config 2019-06-13 19:54:19 -07:00
workers_test.go config: add sanity check to prevent non-negative worker counts 2019-03-13 20:32:52 -07:00
workers.go lncfg/workers: reduce default write pool workers to 8 2019-04-22 16:30:27 -07:00
wtclient.go lncfg: show deprecated warning for wtclient.private-tower-uris option 2019-09-25 14:41:26 -07:00