Fix circular import in ChanKeep/provisioning modules
This commit is contained in:
parent
a1e045793c
commit
95ee63e399
|
@ -3,7 +3,7 @@ from utils.logging.log import *
|
|||
from utils.logging.debug import *
|
||||
from copy import deepcopy
|
||||
from math import ceil
|
||||
from modules.provision import provisionMultipleRelays
|
||||
import modules.provision
|
||||
from twisted.internet.threads import deferToThread
|
||||
|
||||
def allRelaysActive(net):
|
||||
|
@ -98,12 +98,12 @@ def keepChannels(net, listinfo, mean, sigrelay, relay):
|
|||
return
|
||||
if coverAll:
|
||||
needed = relay-len(main.network[net].relays.keys())
|
||||
newNums = provisionMultipleRelays(net, needed)
|
||||
newNums = modules.provision.provisionMultipleRelays(net, needed)
|
||||
flist = [i[0] for i in listinfo]
|
||||
populateChans(net, flist, relay, newNums)
|
||||
else:
|
||||
needed = sigrelay-len(main.network[net].relays.keys())
|
||||
newNums = provisionMultipleRelays(net, needed)
|
||||
newNums = modules.provision.provisionMultipleRelays(net, needed)
|
||||
siglist = [i[0] for i in listinfo if int(i[1]) > mean]
|
||||
populateChans(net, siglist, sigrelay, newNums)
|
||||
notifyJoin(net)
|
||||
|
|
Loading…
Reference in New Issue