Hopefully, refraining users from modifying the file unless they are
certain about the potential consequences.
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
@ -23,10 +23,11 @@ class SettingsTest(BitcoinTestFramework):
settings=node.chain_path/"settings.json"
conf=node.datadir_path/"bitcoin.conf"
# Assert empty settings file was created
# Assert default settings file was created
self.stop_node(0)
default_settings={"_warning_":"This file is automatically generated and updated by Bitcoin Core. Please do not edit this file while the node is running, as any changes might be ignored or overwritten."}
withsettings.open()asfp:
assert_equal(json.load(fp),{})
assert_equal(json.load(fp),default_settings)
# Assert settings are parsed and logged
withsettings.open("w")asfp:
@ -48,7 +49,7 @@ class SettingsTest(BitcoinTestFramework):