Set -discover=0 in regtest framework #4522

pull dgenr8 wants to merge 1 commits into bitcoin:master from dgenr8:set_discover_0 changing 1 files +2 −2
  1. dgenr8 commented at 6:17 PM on July 13, 2014: contributor

    The regtest framework is local, so don't try to discover our external IP. This should keep those writing regtests from spending time debugging to #4502.

    I suspect this also caused the pulltester hang mentioned in #4485.

    3rd party IP providers seem to be interpreting node stop/start activity, common in regtests, to be DoS, making shutdown problems more common that one might otherwise expect.

  2. Set -discover=0 in regtest framework
    The regtest framework is local, so often there is no need to
    discover our external IP.  Setting -discover=0 in util.py works
    around shutdown hang caused by GetExternalIP waiting in recv().
    cdf305eeb0
  3. BitcoinPullTester commented at 6:46 PM on July 13, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4522_cdf305eeb042eb67c5e53a8b04cf475578b0f8e8/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  4. laanwj commented at 6:14 AM on July 14, 2014: member

    Should be solve this in Init in bitcoind itself? Ie, default discover to 0 if -regtest set?

  5. dgenr8 commented at 3:18 PM on July 14, 2014: contributor

    The framework explicitly creates nodes interconnecting to 127.0.0.1 so it seems at least more likely to be right there.

  6. sipa commented at 3:23 PM on July 14, 2014: member

    Please, no more magic behavior triggered by -regtest.

  7. dgenr8 commented at 2:18 PM on July 15, 2014: contributor
  8. gavinandresen commented at 2:29 PM on July 15, 2014: contributor

    ACK.

  9. gavinandresen referenced this in commit 4a56345a74 on Jul 15, 2014
  10. gavinandresen merged this on Jul 15, 2014
  11. gavinandresen closed this on Jul 15, 2014

  12. dgenr8 deleted the branch on Sep 19, 2018
  13. 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: 2026-04-13 21:15 UTC

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