Changeset View
Changeset View
Standalone View
Standalone View
src/test/net_tests.cpp
Show First 20 Lines • Show All 1,160 Lines • ▼ Show 20 Lines | BOOST_AUTO_TEST_CASE(get_extra_full_outbound_count) { | ||||
checkExtraFullOutboundCount(4, 4, 0); | checkExtraFullOutboundCount(4, 4, 0); | ||||
checkExtraFullOutboundCount(5, 5, 2); | checkExtraFullOutboundCount(5, 5, 2); | ||||
} | } | ||||
BOOST_FIXTURE_TEST_CASE(net_group_limit, TestChain100Setup) { | BOOST_FIXTURE_TEST_CASE(net_group_limit, TestChain100Setup) { | ||||
const CChainParams ¶ms = GetConfig().GetChainParams(); | const CChainParams ¶ms = GetConfig().GetChainParams(); | ||||
m_node.connman = std::make_unique<CConnmanTest>(); | m_node.connman = std::make_unique<CConnmanTest>(); | ||||
m_node.peerman = PeerManager::make( | m_node.peerman = | ||||
params, *m_node.connman, m_node.banman.get(), *m_node.scheduler, | PeerManager::make(params, *m_node.connman, m_node.banman.get(), | ||||
*m_node.chainman, *m_node.mempool, false); | *m_node.chainman, *m_node.mempool, false); | ||||
bilingual_str error; | bilingual_str error; | ||||
// Init the global avalanche object otherwise the avalanche outbound | // Init the global avalanche object otherwise the avalanche outbound | ||||
// slots are not allocated. | // slots are not allocated. | ||||
g_avalanche = avalanche::Processor::MakeProcessor( | g_avalanche = avalanche::Processor::MakeProcessor( | ||||
*m_node.args, *m_node.chain, m_node.connman.get(), *m_node.chainman, | *m_node.args, *m_node.chain, m_node.connman.get(), *m_node.chainman, | ||||
*m_node.scheduler, error); | *m_node.scheduler, error); | ||||
BOOST_CHECK(g_avalanche); | BOOST_CHECK(g_avalanche); | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |