channeldb: speed up graph cache loading

Use the optimized ForEachChannel method to reduce the graph cache
loading time.
This commit is contained in:
Joost Jager
2021-12-23 10:27:19 +01:00
parent 2e2229a2e7
commit 352008a0c2
3 changed files with 110 additions and 10 deletions

View File

@@ -19,6 +19,11 @@ connection from the watch-only node.
In other words, freshly-installed LND can now be initialized with multiple
channels from an external (e.g. hardware) wallet *in a single transaction*.
## Database
* [Speed up graph cache loading on startup with
Postgres](https://github.com/lightningnetwork/lnd/pull/6111)
## Build System
* [Clean up Makefile by using go