mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-29 11:12:10 +01:00
[test] Make PeerManager's rng deterministic in tests
This commit is contained in:
parent
fecec3e1c6
commit
4cafe9f176
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user