File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -256,17 +256,18 @@ BOOST_AUTO_TEST_CASE(addrman_select_special)
256
256
// use a non-deterministic addrman to ensure a passing test isn't due to setup
257
257
auto addrman = std::make_unique<AddrMan>(EMPTY_NETGROUPMAN, /* deterministic=*/ false , GetCheckRatio (m_node));
258
258
259
- // add ipv4 address to the new table
260
259
CNetAddr source = ResolveIP (" 252.2.2.2" );
261
- CService addr1 = ResolveService (" 250.1.1.3" , 8333 );
262
- BOOST_CHECK (addrman->Add ({CAddress (addr1, NODE_NONE)}, source));
263
260
264
261
// add I2P address to the tried table
265
262
CAddress i2p_addr;
266
263
i2p_addr.SetSpecial (" udhdrtrcetjm5sxzskjyr5ztpeszydbh4dpl3pl4utgqqw2v4jna.b32.i2p" );
267
264
BOOST_CHECK (addrman->Add ({i2p_addr}, source));
268
265
BOOST_CHECK (addrman->Good (i2p_addr));
269
266
267
+ // add ipv4 address to the new table
268
+ CService addr1 = ResolveService (" 250.1.1.3" , 8333 );
269
+ BOOST_CHECK (addrman->Add ({CAddress (addr1, NODE_NONE)}, source));
270
+
270
271
// since the only ipv4 address is on the new table, ensure that the new
271
272
// table gets selected even if new_only is false. if the table was being
272
273
// selected at random, this test will sporadically fail
You can’t perform that action at this time.
0 commit comments