merge-script
7a74f65293
Merge bitcoin/bitcoin#35536 : fuzz: share a single mocked steady clock across FuzzedSock instances
...
6fa4132298 fuzz: share a single mocked steady clock across FuzzedSock instances (Hao Xu)
Pull request description:
This is a follow-up of https://github.com/bitcoin/bitcoin/pull/35478#issuecomment-4667842057 , inspired by maflcko .
Each FuzzedSock used to own its mocked steady clock and call MockableSteadyClock::SetMockTime() directly. Hold the clock by reference to an externally provided SteadyClockContext instead, so that several FuzzedSock instances sharing a test case (e.g. one per peer, or one created via Accept()) advance a single mocked clock, and the mocking goes through the SteadyClockContext RAII helper that resets mocktime on destruction.
SteadyClockContext is a LimitOne type, so each fuzz target constructs one instance per iteration and passes it to ConsumeSock / ConsumeNode / the FuzzedSock constructor.
ACKs for top commit:
maflcko:
review ACK 6fa4132298 🌕
marcofleon:
crACK 6fa4132298
Tree-SHA512: 3c773b5c0c3ba42a8245c9ea6042b0bc767df4fad506305f3c200310616b48a59deb1542086eb4ce3e8a1407c4d6b42cef3b37cd84bfe80d4821972b8d3b4286
2026-06-27 11:55:06 +02:00
..
2026-06-23 20:18:44 +08:00
2025-12-16 22:21:15 +01:00
2026-06-08 14:27:24 +00:00
2026-01-20 23:59:43 +01:00
2026-01-20 23:59:41 +01:00
2025-12-16 22:21:15 +01:00
2026-06-08 14:27:24 +00:00
2026-04-29 14:51:47 -07:00
2026-04-08 16:08:54 -04:00
2025-03-12 19:46:54 +01:00
2025-12-16 22:21:15 +01:00
2026-01-14 11:38:07 -08:00
2026-06-08 14:27:24 +00:00
2026-04-20 11:15:41 +02:00
2026-02-06 07:56:57 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-02-17 21:40:46 +05:30
2025-12-16 22:21:15 +01:00
2026-02-27 08:37:33 -05:00
2026-06-23 09:25:49 +01:00
2026-06-23 20:18:44 +08:00
2026-06-23 16:14:52 -07:00
2026-05-06 09:39:07 +02:00
2026-06-27 11:55:06 +02:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-04-20 11:15:41 +02:00
2026-06-22 12:11:22 +01:00
2025-12-16 22:21:15 +01:00
2026-06-10 13:37:23 -07:00
2026-04-29 14:51:47 -07:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-07-07 10:39:45 +02:00
2026-02-27 08:37:33 -05:00
2026-02-27 08:37:33 -05:00
2026-02-13 10:52:25 +01:00
2025-12-16 22:21:15 +01:00
2025-01-20 17:43:58 +01:00
2026-03-26 14:41:57 +01:00
2025-12-16 22:21:15 +01:00
2026-01-31 08:45:10 +03:00
2025-12-16 22:21:15 +01:00
2026-06-08 14:27:24 +00:00
2025-08-11 16:47:51 +01:00
2026-06-22 05:47:00 -04:00
2026-06-23 20:18:44 +08:00
2026-01-20 15:47:17 -08:00
2025-12-16 22:21:15 +01:00
2026-05-12 21:24:19 +02:00
2025-12-16 22:21:15 +01:00
2026-06-08 14:27:24 +00:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-06-08 14:27:24 +00:00
2026-02-02 15:20:51 -08:00
2025-12-16 22:21:15 +01:00
2025-10-09 20:47:25 +02:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-06-23 20:18:44 +08:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-04-13 09:49:13 +02:00
2025-01-15 15:44:03 +01:00
2026-06-23 20:18:44 +08:00
2026-06-18 15:04:24 +08:00
2026-03-31 09:48:06 +02:00
2026-05-27 10:33:35 +02:00
2025-12-16 22:21:15 +01:00
2024-12-02 15:09:31 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2024-07-19 15:39:02 +02:00
2026-06-08 14:27:24 +00:00
2026-06-23 20:18:44 +08:00
2025-12-16 22:21:15 +01:00
2025-11-25 10:35:11 +00:00
2026-04-20 11:15:41 +02:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-06-23 20:18:44 +08:00
2026-06-23 20:18:44 +08:00
2025-12-16 22:21:15 +01:00
2026-04-29 15:04:22 -07:00
2025-12-16 22:21:15 +01:00
2026-06-08 14:27:24 +00:00
2025-12-16 22:21:15 +01:00
2026-06-08 14:27:24 +00:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-02-06 07:56:57 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-04-20 21:18:03 -03:00
2026-04-20 11:15:41 +02:00
2025-12-16 22:21:15 +01:00
2026-06-07 20:56:03 +02:00
2026-04-20 21:18:03 -03:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-08-14 10:17:32 +10:00
2025-12-16 22:21:15 +01:00
2026-06-23 20:18:44 +08:00
2025-03-12 19:46:54 +01:00
2026-04-22 16:45:31 +10:00
2025-12-16 22:21:15 +01:00
2026-04-22 17:58:25 +10:00
2026-06-22 12:11:22 +01:00
2026-04-03 22:00:29 +02:00
2026-04-08 22:36:13 +02:00
2026-02-06 07:56:57 +01:00
2026-02-06 07:56:57 +01:00
2026-05-22 08:33:36 +02:00
2026-06-08 14:27:24 +00:00
2026-02-27 08:38:01 -05:00
2026-06-08 14:27:24 +00:00
2025-12-16 22:21:15 +01:00
2026-03-25 16:55:18 +01:00
2026-05-05 14:43:28 +02:00
2026-06-08 14:27:24 +00:00
2026-06-08 14:27:24 +00:00
2026-06-08 14:27:24 +00:00
2025-06-03 19:56:55 +02:00
2026-06-03 11:56:14 -07:00