Skip to content

Commit

Permalink
test: Require minimum of Sapling for all RPC tests
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d authored and DeckerSU committed Mar 1, 2024
1 parent dcde6da commit 80327be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qa/rpc-tests/test_framework/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ def initialize_chain(test_dir):
for i in range(4):
datadir=initialize_datadir("cache", i)
args = [ os.getenv("BITCOIND", "komodod"), "-keypool=1", "-datadir="+datadir, "-discover=0" ]
args.extend([
'-nuparams=5ba81b19:1', # Overwinter
'-nuparams=76b809bb:1', # Sapling
])
if i > 0:
args.append("-connect=127.0.0.1:"+str(p2p_port(0)))
bitcoind_processes[i] = subprocess.Popen(args)
Expand Down Expand Up @@ -222,6 +226,10 @@ def start_node(i, dirname, extra_args=None, rpchost=None, timewait=None, binary=
if binary is None:
binary = os.getenv("BITCOIND", "komodod")
args = [ binary, "-datadir="+datadir, "-keypool=1", "-discover=0", "-rest" ]
args.extend([
'-nuparams=5ba81b19:1', # Overwinter
'-nuparams=76b809bb:1', # Sapling
])
if extra_args is not None: args.extend(extra_args)
#print("args=" + ' '.join(args))
bitcoind_processes[i] = subprocess.Popen(args)
Expand Down

0 comments on commit 80327be

Please sign in to comment.