test: added test for upgradewallet RPC

This commit is contained in:
Harris
2020-04-29 16:11:49 +02:00
parent eef90c14ed
commit 66fe7b1a98
4 changed files with 165 additions and 1 deletions

View File

@@ -326,6 +326,13 @@ 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))