mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 03:03:58 +01:00
0f716f2889qa: cover PROTOCOL_ERROR variant in PCP unit tests (Antoine Poinsot)fc700bb47ftest: Add tests for PCP and NATPMP implementations (laanwj)caf9521033net: Use mockable steady clock in PCP implementation (laanwj)03648321ecutil: Add mockable steady_clock (laanwj)ab1d3ece02net: Add optional length checking to CService::SetSockAddr (laanwj) Pull request description: Add a NodeSteadyClock, a steady_clock that can be mocked with millisecond precision. Use this in the PCP implementation. Then add a mock for a simple scriptable UDP server,, which is used to test various code paths (including successful mappings, timeouts and errors) in the PCP and NATPMP implementations. Includes "net: Add optional length checking to CService::SetSockAddr" from #31014 as a prerequisite. ACKs for top commit: darosior: re-ACK0f716f2889i-am-yuvi: Concept ACK0f716f2889achow101: ACK0f716f2889Tree-SHA512: 6f91b24e6fe46a3fded7a13972efd77c98e6ef235f8898e4ae44068c5df32d1cdabb22cb66c351b338dc98cb2073b624e43607a28107f4999302bfbe7a138229
153 KiB
153 KiB