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.
autopilot: for ConstrainedPrefAttachment.Select factor in skipNodes
This commit modifies the Select method for the ConstrainedPrefAttachment attachment heuristic slightly. Previously, it was possible for an autopilot.Agent to go over the allotted number of channels as it would unconditionally attempt to establish channel with all returned Attachment Directives. To remedy this, we now assume that we already have active, or pending channels to each of the nodes in the set of skipNodes. Therefore, we now use the size of the skipNodes map as an upper limit within the primary selection loop.
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 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