mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-09 08:04:19 +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:
committed by
neil saitug
parent
f72a08c802
commit
e99b11565c
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user