mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
4cafe9f176[test] Make PeerManager's rng deterministic in tests (dergoegge)fecec3e1c6[net processing] FeeFilterRounder doesn't own a FastRandomContext (dergoegge)47520ed209[net processing] Make fee filter rounder non-global (dergoegge)77506f4ac6[net processing] Addr shuffle uses PeerManager's rng (dergoegge)a648dd79e5[net processing] PushAddress uses PeerManager's rng (dergoegge)87c706713e[net processing] PeerManager holds a FastRandomContext (dergoegge) Pull request description: This lets us avoid some non-determinism in tests (also see #28537). ACKs for top commit: MarcoFalke: re-ACK4cafe9f176🕗 glozow: concept && light code review ACK4cafe9f176Tree-SHA512: 3c18700773d0bc547ccb6442c41567e6f26b0b50fab5b79620da417ec91b9c0ae1395d15258da3aa4a91447b8ce560145dd135e39fbbd0610749e528e665b111
Test library
This contains files for the test library, which is used by the test binaries (unit tests, benchmarks, fuzzers, gui tests).
Generally, the files in this folder should be well-separated modules. New code should be added to existing modules or (when in doubt) a new module should be created.
The utilities in here are compiled into a library, which does not hold any state. However, the main file setup_common
defines the common test setup for all test binaries. The test binaries will handle the global state when they
instantiate the BasicTestingSetup (or one of its derived classes).