lnd/autopilot
Olaoluwa Osuntokun 9f52372cd2
autopilot: modify interfaces to specify *exactly* how many chans to open
In this commit, we fix a regression introduced by a recent change which
would allow the agent to detect a channel as failed, and blacklist the
node, promising faster convergence with the ideal state of the
heuristic.

The source of this bug is that we would use the set of blacklisted
nodes in order to compute how many additional channels we should open.
If 10 failures happened, then we would think that we had opened up 10
channels, and stop much earlier than we actually should.

To fix this, while ensuring we don’t retry to failed peers, the
NeedMoreChans method will now return *how* anymore channels to open,
and the Select method will take in how many channels it should try to
open *exactly*.
2018-02-08 20:08:18 -08:00
..
agent_test.go autopilot: modify interfaces to specify *exactly* how many chans to open 2018-02-08 20:08:18 -08:00
agent.go autopilot: modify interfaces to specify *exactly* how many chans to open 2018-02-08 20:08:18 -08:00
graph.go autopilot: update API usage to account for recent channeldb changes 2018-02-06 20:14:32 -08:00
interface.go autopilot: modify interfaces to specify *exactly* how many chans to open 2018-02-08 20:08:18 -08:00
log.go autopilot: "Look ma no hands!", introducing autopilot mode 2017-08-10 21:14:55 -07:00
prefattach_test.go autopilot: modify interfaces to specify *exactly* how many chans to open 2018-02-08 20:08:18 -08:00
prefattach.go autopilot: modify interfaces to specify *exactly* how many chans to open 2018-02-08 20:08:18 -08:00