From ad9c5df9ef62b203a5dffefecb46c3f053201b5f Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Fri, 30 Oct 2020 15:01:50 +0100 Subject: [PATCH] feeadjuster: remove unused loop --- feeadjuster/feeadjuster.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/feeadjuster/feeadjuster.py b/feeadjuster/feeadjuster.py index e10b441..51d06c3 100755 --- a/feeadjuster/feeadjuster.py +++ b/feeadjuster/feeadjuster.py @@ -105,15 +105,6 @@ def init(options: dict, configuration: dict, plugin: Plugin, **kwargs): plugin.adj_basefee = config["fee-base"] plugin.adj_ppmfee = config["fee-per-satoshi"] - for peer in plugin.rpc.listpeers()["peers"]: - if len(peer["channels"]) == 0: - continue - chan = peer["channels"][0] - if "short_channel_id" not in chan: - continue - if chan["state"] != "CHANNELD_NORMAL": - continue - plugin.log("Plugin feeadjuster initialized ({} base / {} ppm) with a " "threshold of {}" .format(plugin.adj_basefee, plugin.adj_ppmfee,