Implement fair channel allocation in ChanKeep
* Allocate channels to relays only if they have free space based on their chanlimit value * Minify channels by removing ones that are already covered before passing them off to be joined
This commit is contained in:
@@ -65,7 +65,6 @@ def provisionRelay(num, network):
|
||||
def provisionMultipleRelays(net, relaysNeeded):
|
||||
for i in range(relaysNeeded):
|
||||
num, alias = main.network[net].add_relay()
|
||||
print(relaysNeeded, "for", net, ":", num, alias)
|
||||
provisionRelay(num, net)
|
||||
main.saveConf("network")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user