lnd.xprv/autopilot
Olaoluwa Osuntokun 77e3e74ea2
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.
2017-08-22 00:51:43 -07:00
..
agent_test.go autopilot: add tracking of pending channel state 2017-08-15 18:23:58 -07:00
agent.go autopilot: ensure all access to pendingOpens is thread-safe 2017-08-22 00:51:33 -07:00
graph.go autopilot: fix linter error 2017-08-15 18:26:59 -07:00
interface.go autopilot: for ConstrainedPrefAttachment.Select factor in skipNodes 2017-08-22 00:51:43 -07:00
log.go autopilot: "Look ma no hands!", introducing autopilot mode 2017-08-10 21:14:55 -07:00
prefattach_test.go autopilot: fix bug in skip nodes test, use new instance for each run 2017-08-22 00:51:39 -07:00
prefattach.go autopilot: for ConstrainedPrefAttachment.Select factor in skipNodes 2017-08-22 00:51:43 -07:00