Skip to content

Commit

Permalink
feeadjuster: exclude list non-required and verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms authored and cdecker committed Aug 28, 2022
1 parent eb03e4f commit 0ecd10b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions feeadjuster/feeadjuster.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,13 @@ def feeadjust(plugin: Plugin, scid: str = None):
if plugin.fee_strategy == get_fees_median and not plugin.listchannels_by_dst:
plugin.channels = plugin.rpc.listchannels()['channels']
channels_adjusted = 0
with open('feeadjuster-exclude.list') as file:
exclude_list = [l.rstrip("\n") for l in file]
try:
with open('feeadjuster-exclude.list') as file:
exclude_list = [l.rstrip("\n") for l in file]
print("Excluding the channels with the nodes:", exclude_list)
except:
exclude_list = []
print("There is no feeadjuster-exclude.list given, applying the options to the channels with all peers.")
for peer in plugin.peers:
if peer["id"] not in exclude_list:
for chan in peer["channels"]:
Expand Down

0 comments on commit 0ecd10b

Please sign in to comment.