diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2019-04-29 15:29:00 -0400 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2022-05-26 11:05:10 -0400 |
commit | a09e3b7cf29c3b1fd320badbed32275e0aa83cda (patch) | |
tree | 6abf9419e12ca3e1d87087666035306361c61dd3 /src/qt/test | |
parent | d2ada6e63583cad91e92b49c4dbf8c7ff086a758 (diff) | |
download | bitcoin-a09e3b7cf29c3b1fd320badbed32275e0aa83cda.tar.xz |
Migrate -listen and -server settings from QSettings to settings.json
Diffstat (limited to 'src/qt/test')
-rw-r--r-- | src/qt/test/optiontests.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/test/optiontests.cpp b/src/qt/test/optiontests.cpp index d84dc524cd..57b462c50b 100644 --- a/src/qt/test/optiontests.cpp +++ b/src/qt/test/optiontests.cpp @@ -35,6 +35,7 @@ void OptionTests::migrateSettings() settings.setValue("nDatabaseCache", 600); settings.setValue("nThreadsScriptVerif", 12); settings.setValue("fUseUPnP", false); + settings.setValue("fListen", false); settings.sync(); @@ -44,10 +45,12 @@ void OptionTests::migrateSettings() QVERIFY(!settings.contains("nDatabaseCache")); QVERIFY(!settings.contains("nThreadsScriptVerif")); QVERIFY(!settings.contains("fUseUPnP")); + QVERIFY(!settings.contains("fListen")); std::ifstream file(gArgs.GetDataDirNet() / "settings.json"); QCOMPARE(std::string(std::istreambuf_iterator<char>(file), std::istreambuf_iterator<char>()).c_str(), "{\n" " \"dbcache\": \"600\",\n" + " \"listen\": false,\n" " \"par\": \"12\"\n" "}\n"); } |