Proposed by Sjors during review of #25678, was likely just missed, as it also for me looks a code where comment will not hurt.
doc: comment “add only reachable addresses to addrman” #26040
pull kristapsk wants to merge 1 commits into bitcoin:master from kristapsk:onlynet_dns-comment changing 1 files +8 −0-
kristapsk commented at 6:36 pm on September 7, 2022: contributor
-
DrahtBot added the label Docs on Sep 7, 2022
-
in src/net.cpp:1651 in 9094951cd0 outdated
1647@@ -1648,6 +1648,9 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect) 1648 1649 if (add_fixed_seeds_now) { 1650 std::vector<CAddress> seed_addrs{ConvertSeeds(Params().FixedSeeds())}; 1651+ // We will not make outgoing connection to peers that are unreachable
mzumsande commented at 10:12 pm on September 7, 2022:nit: connections
kristapsk commented at 10:20 pm on September 7, 2022:Thanks, fixed!mzumsande commented at 10:13 pm on September 7, 2022: contributorACK 9094951cd09c62aa6fd2214f90e3eb87ca2d98afkristapsk force-pushed on Sep 7, 2022in src/net.cpp:1653 in a7b4f97b01 outdated
1647@@ -1648,6 +1648,9 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect) 1648 1649 if (add_fixed_seeds_now) { 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, it makes no sense to add them to addrman in the first place.
Zero-1729 commented at 0:03 am on September 8, 2022:Slight rewording nit
0 // Therefore, we do not add them to addrman in the first place.
Sjors commented at 3:32 pm on September 8, 2022:or:, so don't add them to addrman.
Zero-1729 commented at 0:03 am on September 8, 2022: contributorcrACK a7b4f97b016eb7728d6381765269d228a4093492vasild approvedvasild commented at 8:05 am on September 8, 2022: contributorACK a7b4f97b016eb7728d6381765269d228a4093492doc: comment "add only reachable addresses to addrman" ce42570266kristapsk force-pushed on Sep 8, 2022kristapsk commented at 10:42 pm on September 8, 2022: contributorAddressed additional review comments.amovfx commented at 1:26 am on September 9, 2022: noneI’m confused about the broken checks, all I see is a doc string.in src/net.cpp:1651 in ce42570266
1647@@ -1648,6 +1648,14 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect) 1648 1649 if (add_fixed_seeds_now) { 1650 std::vector<CAddress> seed_addrs{ConvertSeeds(Params().FixedSeeds())}; 1651+ // We will not make outgoing connections to peers that are unreachable
Sjors commented at 11:20 am on September 9, 2022:Maybe it wants:
0/* Blah 1 * blah 2 * blah */
kristapsk commented at 12:12 pm on September 9, 2022:No, there are two random funcional tests failing in each failed CI run for some reason (different one in each case), should not be related with this change.
vasild approvedvasild commented at 11:47 am on September 9, 2022: contributorACK ce4257026622287c8c981fb932681730a3c6387fZero-1729 commented at 1:17 pm on September 9, 2022: contributorre-ACK ce4257026622287c8c981fb932681730a3c6387fmzumsande commented at 3:13 pm on September 9, 2022: contributorACK ce4257026622287c8c981fb932681730a3c6387fMarcoFalke merged this on Sep 9, 2022MarcoFalke closed this on Sep 9, 2022
kristapsk deleted the branch on Sep 9, 2022sidhujag referenced this in commit bdc177ef80 on Sep 11, 2022bitcoin locked this on Sep 9, 2023
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 18:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me