| 86 | } |
| 87 | |
| 88 | void OptionTests::integerGetArgBug() |
| 89 | { |
| 90 | // Test regression https://github.com/bitcoin/bitcoin/issues/24457. Ensure |
| 91 | // that setting integer prune value doesn't cause an exception to be thrown |
| 92 | // in the OptionsModel constructor |
| 93 | gArgs.LockSettings([&](common::Settings& settings) { |
| 94 | settings.forced_settings.erase("prune"); |
| 95 | settings.rw_settings["prune"] = 3814; |
| 96 | }); |
| 97 | gArgs.WriteSettingsFile(); |
| 98 | bilingual_str error; |
| 99 | QVERIFY(OptionsModel{m_node}.Init(error)); |
| 100 | gArgs.LockSettings([&](common::Settings& settings) { |
| 101 | settings.rw_settings.erase("prune"); |
| 102 | }); |
| 103 | gArgs.WriteSettingsFile(); |
| 104 | } |
| 105 | |
| 106 | void OptionTests::parametersInteraction() |
| 107 | { |
nothing calls this directly
no test coverage detected