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 | 9a016a3c07d4becf0651ef58c7160180c5f25a0c (patch) | |
tree | 2bbfbc3aab833f8355d38c599f79a955d72c845f /src/qt/test/optiontests.cpp | |
parent | f067e1943361b7bfa78a423528759e9edffa7482 (diff) |
Migrate -prune setting from QSettings to settings.json
Diffstat (limited to 'src/qt/test/optiontests.cpp')
-rw-r--r-- | src/qt/test/optiontests.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qt/test/optiontests.cpp b/src/qt/test/optiontests.cpp index 443c9f2a93..3bd0af19ad 100644 --- a/src/qt/test/optiontests.cpp +++ b/src/qt/test/optiontests.cpp @@ -36,6 +36,8 @@ void OptionTests::migrateSettings() settings.setValue("nThreadsScriptVerif", 12); settings.setValue("fUseUPnP", false); settings.setValue("fListen", false); + settings.setValue("bPrune", true); + settings.setValue("nPruneSize", 3); settings.setValue("fUseProxy", true); settings.setValue("addrProxy", "proxy:123"); settings.setValue("fUseSeparateProxyTor", true); @@ -50,6 +52,8 @@ void OptionTests::migrateSettings() QVERIFY(!settings.contains("nThreadsScriptVerif")); QVERIFY(!settings.contains("fUseUPnP")); QVERIFY(!settings.contains("fListen")); + QVERIFY(!settings.contains("bPrune")); + QVERIFY(!settings.contains("nPruneSize")); QVERIFY(!settings.contains("fUseProxy")); QVERIFY(!settings.contains("addrProxy")); QVERIFY(!settings.contains("fUseSeparateProxyTor")); @@ -61,7 +65,8 @@ void OptionTests::migrateSettings() " \"listen\": false,\n" " \"onion\": \"onion:234\",\n" " \"par\": \"12\",\n" - " \"proxy\": \"proxy:123\"\n" + " \"proxy\": \"proxy:123\",\n" + " \"prune\": \"2861\"\n" "}\n"); } |