mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-24 08:34:18 +01:00
feeadjuster: remove unused loop
This commit is contained in:
committed by
Christian Decker
parent
9809cc2dfd
commit
ad9c5df9ef
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user