Should probably add this change to 23.x as suggested by Luke #24457 (comment). If settings like prune
are added to settings.json
in the future, it would be preferable for 23.x releases to respect the setting instead of crash.
Fix GUI startup crash reported by Rspigler in #24457 that happens if settings.json
contains an integer value for any of the configuration options which GUI settings can currently clash with (-dbcache, -par, -spendzeroconfchange, -signer, -upnp, -natpmp, -listen, -server, -proxy, -proxy, -onion, -onion, -lang, and -prune).
The fix is a one-line change in ArgsManager::GetArg
. The rest of the PR just adds a regression test for the GUI and unit tests for ArgsManager::GetArg methods.