mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
pyln: Change the default argument to exclude
in pay
We must use `None` for default arguments since otherwise they aren't filtered out when serializing the request. In addition default arguments to functions are initialized once and, if mutable, could persist internal changes across function calls. Changelog-None
This commit is contained in:
parent
f72a08c802
commit
e99b11565c
1 changed files with 1 additions and 1 deletions
|
@ -990,7 +990,7 @@ class LightningRpc(UnixDomainSocketRpc):
|
|||
|
||||
def pay(self, bolt11, msatoshi=None, label=None, riskfactor=None,
|
||||
maxfeepercent=None, retry_for=None,
|
||||
maxdelay=None, exemptfee=None, exclude=[]):
|
||||
maxdelay=None, exemptfee=None, exclude=None):
|
||||
"""
|
||||
Send payment specified by {bolt11} with {msatoshi}
|
||||
(ignored if {bolt11} has an amount), optional {label}
|
||||
|
|
Loading…
Add table
Reference in a new issue