lnd.xprv/autopilot
Olaoluwa Osuntokun 711b695a2f
autopilot: add tracking of pending channel state
This commit adds tracking of the pending channels state within the
autopilot.Agent. This fixes a class of bugs which was discovered during
the latest test net block storm wherein the Agent would attempt to
repeatedly attach to the same node due to rapid closure of other
channels.

In this commit we fix this issue by ensuring that we always factor in
the pending channel state when querying the heuristic w.r.t if we need
more channels, and if so to which nodes should be attached to.
2017-08-15 18:23:58 -07:00
..
agent_test.go autopilot: add tracking of pending channel state 2017-08-15 18:23:58 -07:00
agent.go autopilot: add tracking of pending channel state 2017-08-15 18:23:58 -07:00
graph.go autopilot: fix chanID collision test flake by instead using atomic counter 2017-08-15 17:56:24 -07:00
interface.go autopilot: "Look ma no hands!", introducing autopilot mode 2017-08-10 21:14:55 -07:00
log.go autopilot: "Look ma no hands!", introducing autopilot mode 2017-08-10 21:14:55 -07:00
prefattach_test.go autopilot: "Look ma no hands!", introducing autopilot mode 2017-08-10 21:14:55 -07:00
prefattach.go autopilot: fix linter error 2017-08-10 22:07:22 -07:00