diff options
author | dergoegge <n.goeggi@gmail.com> | 2023-10-02 14:41:08 +0100 |
---|---|---|
committer | dergoegge <n.goeggi@gmail.com> | 2023-10-04 13:16:53 +0100 |
commit | 4cafe9f176e93ebb6c38abb12140e8d8be005cbf (patch) | |
tree | 4b18dd5a2c32996d98ee3fe635ca71c627253d5c /src/test | |
parent | fecec3e1c661ba273470ecc5ef12d4c070b53050 (diff) |
[test] Make PeerManager's rng deterministic in tests
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/util/setup_common.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 2947bc3fcb..e27d5a27ad 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -256,6 +256,7 @@ TestingSetup::TestingSetup( m_node.connman = std::make_unique<ConnmanTestMsg>(0x1337, 0x1337, *m_node.addrman, *m_node.netgroupman, Params()); // Deterministic randomness for tests. PeerManager::Options peerman_opts; ApplyArgsManOptions(*m_node.args, peerman_opts); + peerman_opts.deterministic_rng = true; m_node.peerman = PeerManager::make(*m_node.connman, *m_node.addrman, m_node.banman.get(), *m_node.chainman, *m_node.mempool, peerman_opts); |