diff options
author | John Newbery <john@johnnewbery.com> | 2020-10-22 10:46:31 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2020-12-09 18:13:37 +0000 |
commit | 68334b39443b3cfd75b0ef815ac40074185386f2 (patch) | |
tree | 1e5caa777021289a646481aa146c05293ac4c646 /src/test/util | |
parent | 4d510aa055064df5a10c2cc7888baffc3e6bc0e6 (diff) |
[net processing] Add m_ignores_incoming_txs to PeerManager and use internally
Diffstat (limited to 'src/test/util')
-rw-r--r-- | src/test/util/setup_common.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 55766a60b4..db8b43d039 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -192,7 +192,9 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector<const m_node.banman = MakeUnique<BanMan>(GetDataDir() / "banlist.dat", nullptr, DEFAULT_MISBEHAVING_BANTIME); m_node.connman = MakeUnique<CConnman>(0x1337, 0x1337); // Deterministic randomness for tests. - m_node.peerman = MakeUnique<PeerManager>(chainparams, *m_node.connman, m_node.banman.get(), *m_node.scheduler, *m_node.chainman, *m_node.mempool); + m_node.peerman = std::make_unique<PeerManager>(chainparams, *m_node.connman, m_node.banman.get(), + *m_node.scheduler, *m_node.chainman, *m_node.mempool, + false); { CConnman::Options options; options.m_msgproc = m_node.peerman.get(); |