[tests] Use regtest section in functional tests configs

This commit is contained in:
Anthony Towns committed 2018-04-11 23:15:28 +10:00
1 parent 30f94074c8
commit 8a9817d175
2 files changed
+7 -1

No files matched your search

+1
View File
@@ -294,6 +294,7 @@ def initialize_datadir(dirname, n):
os.makedirs(datadir)
with open(os.path.join(datadir, "bitcoin.conf"), 'w', encoding='utf8') as f:
f.write("regtest=1\n")
f.write("[regtest]\n")
f.write("port=" + str(p2p_port(n)) + "\n")
f.write("rpcport=" + str(rpc_port(n)) + "\n")
f.write("server=1\n")