mirror of
https://github.com/aljazceru/plugins.git
synced 2026-01-24 15:34:20 +01:00
feeadjuster: setchannelfee last two parameters are optional
- feeadjuster keeps crashing without this
This commit is contained in:
committed by
Michael Schmoock
parent
29dfc0f3f8
commit
a778da4e10
@@ -110,7 +110,7 @@ def get_fees_median(plugin: Plugin, scid: str):
|
|||||||
return {"base": plugin.adj_basefee, "ppm": statistics.median(fees_ppm)}
|
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)
|
fees = get_chan_fees(plugin, scid)
|
||||||
if fees is None or base == fees['base'] and ppm == fees['ppm']:
|
if fees is None or base == fees['base'] and ppm == fees['ppm']:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user