forked from lightningnetwork/lnd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graph: implement index for disabled channels.
This commit adds an index bucket, disabledEdgePolicyBucket, for those ChannelEdgePolicy with disabled bit on. The main purpose is to be able to iterate over these fast when prune is needed without the need for iterating the whole graph. The entry points for accessing this index are: 1. When updating ChannelEdgePolicy - insert an entry. 2. When deleting ChannelEdge - delete the associated entries. 3. When querying for disabled channels - implemented DisabledChannelIDs function
- Loading branch information
Showing
2 changed files
with
191 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters