mirror of
https://github.com/lightningd/plugins.git
synced 2026-08-15 12:50:41 +02:00
feeadjuster: setchannelfee last two parameters are optional
- feeadjuster keeps crashing without this
This commit is contained in:
parent
29dfc0f3f8
commit
a778da4e10
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue