Skip to content

channeldb: make channel graph population async  #6187

@Roasbeef

Description

@Roasbeef

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 that lnd can start up as soon as the graph is open, and callers block until cache population is complete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2should be fixed if one has timegraphintermediateIssues suitable for developers moderately familiar with the codebase and LNoptimization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions