mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
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. |
||
---|---|---|
.. | ||
agent.go | ||
agent_constraints.go | ||
agent_constraints_test.go | ||
agent_test.go | ||
choice.go | ||
choice_test.go | ||
combinedattach.go | ||
externalscoreattach.go | ||
externalscoreattach_test.go | ||
graph.go | ||
interface.go | ||
log.go | ||
manager.go | ||
prefattach.go | ||
prefattach_test.go |