-
ghost commented at 11:53 pm on November 30, 2014: noneRegtest has neither DNS nor fixed seeds. The net.cpp 1229-1237 block in ThreadOpenConnections() acts oblivious to this, and attempts to add fixed nodes, assuming DNS seeds are down. While this may not necessarily be entirely inappropriate (in terms of ‘path invariants’), this also may not remain harmless indefinitely, if we are assuming the possibility of an ‘infrastructure attack’ as the comment does (legitimate in the context of mainnet, or even testnet). At the very least, the comment itself needs to be updated to call out the regtest use case.
-
laanwj commented at 11:22 am on December 5, 2014: memberWhat attack would you imagine on this? regtest is - by definition - local-only so any type of DNS seeding or fixed seeding would be actively harmful. You could add a check that those stages are skipped entirely iff there are no seeds, but in practice nothing would change?
-
laanwj added the label Priority Low on Dec 5, 2014
-
laanwj added the label Tests on Dec 5, 2014
-
ghost commented at 3:34 am on December 6, 2014: noneI agree completely. The concern would be any future mods to this block, should they overlook the regtest use case (and therefore possibly take more dramatic measures operating under the assumption of an infrastructure attack). So, what say you? Is a comment update in order, or a comment update + skip the block entirely if there are no seeds? I have to say the code has managed to handle the different modes remarkably uniformly so far…
-
laanwj removed the label Priority Low on Dec 6, 2017
-
meshcollider closed this on Mar 7, 2018
-
DrahtBot locked this on Sep 8, 2021
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-12-18 18:12 UTC
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-12-18 18:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me