test: refactor: Inline adjust_bitcoin_conf_for_pre_17

This commit is contained in:
MarcoFalke
2020-06-16 07:39:18 -04:00
parent 0afbeb73cc
commit faa841bc97
5 changed files with 11 additions and 19 deletions

View File

@@ -327,12 +327,6 @@ def initialize_datadir(dirname, n, chain):
os.makedirs(os.path.join(datadir, 'stdout'), exist_ok=True)
return datadir
def adjust_bitcoin_conf_for_pre_17(conf_file):
with open(conf_file,'r', encoding='utf8') as conf:
conf_data = conf.read()
with open(conf_file, 'w', encoding='utf8') as conf:
conf_data_changed = conf_data.replace('[regtest]', '')
conf.write(conf_data_changed)
def get_datadir_path(dirname, n):
return os.path.join(dirname, "node" + str(n))