You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin#32198: fuzz: Make p2p_headers_presync more deterministic
faa3ce3 fuzz: Avoid influence on the global RNG from peerman m_rng (MarcoFalke)
faf4c1b fuzz: Disable unused validation interface and scheduler in p2p_headers_presync (MarcoFalke)
fafaca6 fuzz: Avoid setting the mock-time twice (MarcoFalke)
fad2214 refactor: Use MockableSteadyClock in ReportHeadersPresync (MarcoFalke)
fa9c387 test: Introduce MockableSteadyClock::mock_time_point and ElapseSteady helper (MarcoFalke)
faf2d51 fuzz: Move global node id counter along with other global state (MarcoFalke)
fa98455 fuzz: Set ignore_incoming_txs in p2p_headers_presync (MarcoFalke)
faf2e23 fuzz: Shuffle files before testing them (MarcoFalke)
Pull request description:
This should make the `p2p_headers_presync` fuzz target more deterministic.
Tracking issue: bitcoin#29018.
The first commits adds an `ElapseSteady` helper and type aliases. The second commit uses those helpers in `ReportHeadersPresync` and in the fuzz target to increase determinism.
### Testing
It can be tested via (setting 32 parallel threads):
```
cargo run --manifest-path ./contrib/devtools/deterministic-fuzz-coverage/Cargo.toml -- $PWD/bld-cmake/ $PWD/../b-c-qa-assets/fuzz_corpora/ p2p_headers_presync 32
```
The failing diff is contained in the commit messages, if applicable.
ACKs for top commit:
Crypt-iQ:
tACK faa3ce3
janb84:
Re-ACK [faa3ce3](bitcoin@faa3ce3)
marcofleon:
ACK faa3ce3
Tree-SHA512: 7e2e0ddf3b4e818300373d6906384df57a87f1eeb507fa43de1ba88cf03c8e6752a26b6e91bfb3ee26a21efcaf1d0d9eaf70d311d1637b671965ef4cb96e6b59
0 commit comments