We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b8094 commit 0c00c0cCopy full SHA for 0c00c0c
src/test/net_peer_eviction_tests.cpp
@@ -289,16 +289,16 @@ BOOST_AUTO_TEST_CASE(peer_protection_test)
289
BOOST_CHECK(IsProtected(
290
4, [](NodeEvictionCandidate& c) {
291
c.m_connected = std::chrono::seconds{c.id};
292
- c.m_is_local = (c.id == 3);
293
- if (c.id == 4) {
+ c.m_is_local = (c.id == 2);
+ if (c.id == 3) {
294
c.m_network = NET_I2P;
295
- } else if (c.id == 2) {
+ } else if (c.id == 1) {
296
c.m_network = NET_ONION;
297
} else {
298
c.m_network = NET_IPV6;
299
}
300
},
301
- /*protected_peer_ids=*/{0, 4},
+ /*protected_peer_ids=*/{0, 3},
302
/*unprotected_peer_ids=*/{1, 2},
303
random_context));
304
0 commit comments