Skip to content

Commit e3047ed

Browse files
committed
test: use p2p constants in denial of service tests
1 parent 25d8264 commit e3047ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/denialofservice_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ BOOST_AUTO_TEST_CASE(stale_tip_peer_management)
151151
auto peerLogic = MakeUnique<PeerLogicValidation>(connman.get(), nullptr, *m_node.scheduler, *m_node.mempool);
152152

153153
const Consensus::Params& consensusParams = Params().GetConsensus();
154-
constexpr int max_outbound_full_relay = 8;
154+
constexpr int max_outbound_full_relay = MAX_OUTBOUND_FULL_RELAY_CONNECTIONS;
155155
CConnman::Options options;
156-
options.nMaxConnections = 125;
156+
options.nMaxConnections = DEFAULT_MAX_PEER_CONNECTIONS;
157157
options.m_max_outbound_full_relay = max_outbound_full_relay;
158-
options.nMaxFeeler = 1;
158+
options.nMaxFeeler = MAX_FEELER_CONNECTIONS;
159159

160160
connman->Init(options);
161161
std::vector<CNode *> vNodes;

0 commit comments

Comments
 (0)