From 553e2eb2b7bcd0346d618fd078d6dd24811eb2a8 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 18 Aug 2022 07:20:30 +0100 Subject: [PATCH] Set the channel limit on connected relays, not active --- api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views.py b/api/views.py index a8d44ce..12269ba 100644 --- a/api/views.py +++ b/api/views.py @@ -293,7 +293,7 @@ class API(object): return dumps({"success": False, "reason": "invalid chanlimit: not a number."}) else: chanlimit = int(chanlimit) - online_relays = helpers.get_active_relays(net) + online_relays = helpers.get_connected_relays(net) for r in online_relays: r.chanlimit = chanlimit elif item == "security":