channeldb: make channel graph population async #6187
Labels
graph
intermediate
Issues suitable for developers moderately familiar with the codebase and LN
optimization
P2
should be fixed if one has time
In #6111 we significantly sped up the population of the channel graph cache. However, as is, it's still fully blocking:
lnd
won't start up until the cache is populated. However there's no reason for this to be the case, as things like forwarding HTLCs don't actually require access to the cache. Instead, we should modify things such thatlnd
can start up as soon as the graph is open, and callers block until cache population is complete.The text was updated successfully, but these errors were encountered: