[tests] Use regtest section in functional tests configs

This commit is contained in:
Anthony Towns
2018-04-04 18:05:00 +10:00
parent 30f94074c8
commit 8a9817d175
2 changed files with 7 additions and 1 deletions

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")