regtest mode: trying to connection to .onions ? #5127

issue gavinandresen opened this issue on October 23, 2014
  1. gavinandresen commented at 5:06 PM on October 23, 2014: contributor

    Running one of the regression test in qa/rpc_tests: ./listtransactions.py --nocleanup

    ... and then looking at one of the test nodes regtest/debug.log after, I see a whole lot of:

    2014-10-23 17:03:24 Cannot connect to thfsmmn2jbitcoin.onion:18333: unsupported network 2014-10-23 17:03:26 Cannot connect to it2pj4f7657g3rhi.onion:18333: unsupported network

  2. gavinandresen added the label Bug on Oct 23, 2014
  3. gavinandresen added the label Tests on Oct 23, 2014
  4. domob1812 commented at 7:09 AM on October 24, 2014: contributor

    I've also noticed that. Adding dnsseed=0 to the config written in util.py's initialize_datadir fixes it. Although it may be better to disable the DNS seed for regtest by itself.

    I can provide a patch for either solution, if it is desired.

  5. laanwj commented at 7:29 AM on October 24, 2014: member

    The root issue here is that CRegTestParams inherits all parameters from CTestNetParams, but forgets to clear vFixedSeeds, so it can try to connect to the testnet seeds. These are the 'fixed seeds', not the DNS seeds, those are properly cleared.

  6. laanwj commented at 7:34 AM on October 24, 2014: member

    See #5133

  7. laanwj referenced this in commit 7c0f36c431 on Oct 24, 2014
  8. laanwj closed this on Oct 24, 2014

  9. reddink referenced this in commit 0d939c9043 on May 27, 2020
  10. MarcoFalke 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: 2026-05-02 03:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me