(n)
| 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 |
no test coverage detected