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

Function onepay

tests/benchmark.py:258–262  ·  view source on GitHub ↗
(l1, routestep)

Source from the content-addressed store, hash-verified

256 }
257
258 def onepay(l1, routestep):
259 phash = random.randbytes(32).hex()
260 l1.rpc.sendpay([routestep], phash)
261 with pytest.raises(RpcError, match="WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS"):
262 l1.rpc.waitsendpay(phash)
263
264 benchmark(onepay, l1, routestep)
265

Callers

nothing calls this directly

Calls 2

sendpayMethod · 0.80
waitsendpayMethod · 0.80

Tested by

no test coverage detected