lnd.xprv/autopilot
Johan T. Halseth 4a1e06b204
autopilot/agent: distribute available funds among channels
This commit fixes a regression in how we allocate funds to attempted
channels. We would earlier stay within the channel size limits, but we
wouldn't account for funds consumed by other channels being opened in
parallel.

We fix this by introducing a loop which greadily tries to distribute the
funds among the channels to open, and reduces the number of channels to
open in case not enough funds are available to satisfy the channel size
limits.
2019-03-14 08:49:28 +01:00
..
agent_constraints_test.go autopilot: TestConstrainedPrefAttachmentNeedMoreChan->TestConstraintsChannelBudget 2019-01-08 10:10:58 +01:00
agent_constraints.go autopilot: define AgentConstraints 2019-01-08 10:10:58 +01:00
agent_test.go autopilot/agent_test: add TestAgentQuitWhenPendingConns 2019-02-05 10:45:53 +01:00
agent.go autopilot/agent: distribute available funds among channels 2019-03-14 08:49:28 +01:00
choice_test.go autopilot/interface+choice: add NodeScore type 2019-01-08 10:23:48 +01:00
choice.go autopilot/interface+choice: add NodeScore type 2019-01-08 10:23:48 +01:00
combinedattach.go autopilot/interface+externalscoreattach: define ScoreSettable 2019-02-14 11:41:47 +01:00
externalscoreattach_test.go autopilot/externalscoreattach_test: add TestSetNodeScores 2019-02-14 12:37:25 +01:00
externalscoreattach.go autopilot/interface+externalscoreattach: define ScoreSettable 2019-02-14 11:41:47 +01:00
graph.go autopilot/graph: set max htlc in test edge policies 2019-01-22 08:42:29 +01:00
interface.go autopilot/interface+externalscoreattach: define ScoreSettable 2019-02-14 11:41:47 +01:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00
manager.go autopilot+lnrpc: wire up SetNodeScores RPC to set scores of agent 2019-02-14 11:41:47 +01:00
prefattach_test.go autopilot/interface+prefattach: scale node scores to range [0.0, 1.0] 2019-01-21 09:44:37 +01:00
prefattach.go autopilot/interface: add Name() to AttachmentHeuristic interface 2019-01-23 09:05:42 +01:00