feeadjuster: setchannelfee last two parameters are optional

- feeadjuster keeps crashing without this
This commit is contained in:
Gálli Zoltán
2022-12-03 17:42:31 +01:00
committed by Michael Schmoock
parent 29dfc0f3f8
commit a778da4e10

View File

@@ -110,7 +110,7 @@ def get_fees_median(plugin: Plugin, scid: str):
return {"base": plugin.adj_basefee, "ppm": statistics.median(fees_ppm)}
def setchannelfee(plugin: Plugin, scid: str, base: int, ppm: int, min_htlc: int, max_htlc: int):
def setchannelfee(plugin: Plugin, scid: str, base: int, ppm: int, min_htlc: int = None, max_htlc: int = None):
fees = get_chan_fees(plugin, scid)
if fees is None or base == fees['base'] and ppm == fees['ppm']:
return False