File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1648,6 +1648,14 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
1648
1648
1649
1649
if (add_fixed_seeds_now) {
1650
1650
std::vector<CAddress> seed_addrs{ConvertSeeds (Params ().FixedSeeds ())};
1651
+ // We will not make outgoing connections to peers that are unreachable
1652
+ // (e.g. because of -onlynet configuration).
1653
+ // Therefore, we do not add them to addrman in the first place.
1654
+ // Note that if you change -onlynet setting from one network to another,
1655
+ // peers.dat will contain only peers of unreachable networks and
1656
+ // manual intervention will be needed (either delete peers.dat after
1657
+ // configuration change or manually add some reachable peer using addnode),
1658
+ // see <https://github.com/bitcoin/bitcoin/issues/26035> for details.
1651
1659
seed_addrs.erase (std::remove_if (seed_addrs.begin (), seed_addrs.end (),
1652
1660
[](const CAddress& addr) { return !IsReachable (addr); }),
1653
1661
seed_addrs.end ());
You can’t perform that action at this time.
0 commit comments