Implement migrating networks

This commit is contained in:
2022-08-12 23:32:00 +01:00
parent 14967f662c
commit edfb3f15eb
6 changed files with 55 additions and 16 deletions

View File

@@ -60,6 +60,7 @@ def getChanFree(net, new):
return False
return (chanfree, chanlimits.pop())
def getTotalChans(net):
total = 0
for i in getActiveRelays(net):
@@ -307,4 +308,4 @@ def chankeep_handler(net, num, listinfo, chanlimit):
:param chanlimit:
:return:
"""
listinfo, mean, sigrelay, relay = _initialList(net, num, listinfo, chanlimit)
listinfo, mean, sigrelay, relay = _initialList(net, num, listinfo, chanlimit)