MCPcopy Create free account
hub / github.com/ElementsProject/lightning / dev_pay

Method dev_pay

contrib/pyln-testing/pyln/testing/utils.py:1630–1641  ·  view source on GitHub ↗

Wrapper for rpc.dev_pay which suppresses the request schema

(self, bolt11, amount_msat=None, label=None, riskfactor=None,
                maxfeepercent=None, retry_for=None,
                maxdelay=None, exemptfee=None, dev_use_shadow=True, exclude=[])

Source from the content-addressed store, hash-verified

1628 raise ValueError("Unknown value in config {}".format(config))
1629
1630 def dev_pay(self, bolt11, amount_msat=None, label=None, riskfactor=None,
1631 maxfeepercent=None, retry_for=None,
1632 maxdelay=None, exemptfee=None, dev_use_shadow=True, exclude=[]):
1633 """Wrapper for rpc.dev_pay which suppresses the request schema"""
1634 # FIXME? dev options are not in schema
1635 old_check = self.rpc.check_request_schemas
1636 self.rpc.check_request_schemas = False
1637 ret = self.rpc.dev_pay(bolt11, amount_msat, label, riskfactor,
1638 maxfeepercent, retry_for,
1639 maxdelay, exemptfee, dev_use_shadow, exclude)
1640 self.rpc.check_request_schemas = old_check
1641 return ret
1642
1643 def dev_invoice(self, amount_msat, label, description, expiry=None, fallbacks=None, preimage=None, exposeprivatechannels=None, cltv=None, dev_routes=None):
1644 """Wrapper for rpc.invoice() with dev-routes option"""

Callers 14

test_payFunction · 0.45
test_pay_amountsFunction · 0.45
test_pay_limitsFunction · 0.45
test_pay_optional_argsFunction · 0.45
test_pay_retryFunction · 0.45
test_setchannel_stateFunction · 0.45
test_setchannel_routingFunction · 0.45
test_setchannel_zeroFunction · 0.45
test_setchannel_restartFunction · 0.45
test_pay_exemptfeeFunction · 0.45

Calls

no outgoing calls

Tested by 14

test_payFunction · 0.36
test_pay_amountsFunction · 0.36
test_pay_limitsFunction · 0.36
test_pay_optional_argsFunction · 0.36
test_pay_retryFunction · 0.36
test_setchannel_stateFunction · 0.36
test_setchannel_routingFunction · 0.36
test_setchannel_zeroFunction · 0.36
test_setchannel_restartFunction · 0.36
test_pay_exemptfeeFunction · 0.36