Skip to content

Commit 4a56345

Browse files
committed
Merge pull request #4522 from dgenr8/set_discover_0
Set -discover=0 in regtest framework
2 parents 2c0f019 + cdf305e commit 4a56345

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qa/rpc-tests/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def initialize_chain(test_dir):
8585
# Create cache directories, run bitcoinds:
8686
for i in range(4):
8787
datadir=initialize_datadir("cache", i)
88-
args = [ "bitcoind", "-keypool=1", "-datadir="+datadir ]
88+
args = [ "bitcoind", "-keypool=1", "-datadir="+datadir, "-discover=0" ]
8989
if i > 0:
9090
args.append("-connect=127.0.0.1:"+str(p2p_port(0)))
9191
bitcoind_processes[i] = subprocess.Popen(args)
@@ -147,7 +147,7 @@ def start_node(i, dir, extra_args=None, rpchost=None):
147147
Start a bitcoind and return RPC connection to it
148148
"""
149149
datadir = os.path.join(dir, "node"+str(i))
150-
args = [ "bitcoind", "-datadir="+datadir, "-keypool=1" ]
150+
args = [ "bitcoind", "-datadir="+datadir, "-keypool=1", "-discover=0" ]
151151
if extra_args is not None: args.extend(extra_args)
152152
bitcoind_processes[i] = subprocess.Popen(args)
153153
devnull = open("/dev/null", "w+")

0 commit comments

Comments
 (0)