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

Function do_round_trips

tests/test_connection.py:4844–4851  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

4842 }
4843
4844 def do_round_trips(n):
4845 start = time.time()
4846 for _ in range(n):
4847 phash = random.randbytes(32).hex()
4848 l1.rpc.sendpay([routestep], phash)
4849 with pytest.raises(RpcError, match="WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS"):
4850 l1.rpc.waitsendpay(phash)
4851 return time.time() - start
4852
4853 # Probe the actual per-RTT Nagle overhead on this platform with a small
4854 # sample (10 trips), then scale up for the full run. Linux's TCP Nagle

Callers 1

test_no_delayFunction · 0.85

Calls 2

sendpayMethod · 0.80
waitsendpayMethod · 0.80

Tested by

no test coverage detected