pyln-testing: add dev-pay.

This will override the schema later.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-04-01 14:43:33 +10:30
parent dc924b8859
commit 26bee7a2ab
4 changed files with 44 additions and 34 deletions

View File

@@ -1138,6 +1138,14 @@ class LightningNode(object):
except RpcError:
return None
def dev_pay(self, bolt11, msatoshi=None, label=None, riskfactor=None,
maxfeepercent=None, retry_for=None,
maxdelay=None, exemptfee=None, use_shadow=True, exclude=[]):
"""Wrapper for rpc.dev_pay which suppresses the request schema"""
return self.rpc.dev_pay(bolt11, msatoshi, label, riskfactor,
maxfeepercent, retry_for,
maxdelay, exemptfee, use_shadow, exclude)
@contextmanager
def flock(directory: Path):