Set the channel limit on connected relays, not active
This commit is contained in:
parent
3dfc6d736a
commit
553e2eb2b7
|
@ -293,7 +293,7 @@ class API(object):
|
||||||
return dumps({"success": False, "reason": "invalid chanlimit: not a number."})
|
return dumps({"success": False, "reason": "invalid chanlimit: not a number."})
|
||||||
else:
|
else:
|
||||||
chanlimit = int(chanlimit)
|
chanlimit = int(chanlimit)
|
||||||
online_relays = helpers.get_active_relays(net)
|
online_relays = helpers.get_connected_relays(net)
|
||||||
for r in online_relays:
|
for r in online_relays:
|
||||||
r.chanlimit = chanlimit
|
r.chanlimit = chanlimit
|
||||||
elif item == "security":
|
elif item == "security":
|
||||||
|
|
Loading…
Reference in New Issue