Backport from Core's PR11125
Fixes T210
Note this diff includes some calls to `GetBoolArg` not using the wrappers (ie: gArgs.GetBoolArg)
as it was changed in https://github.com/promag/bitcoin/commit/bb81e1735575e1c00e808326735168cc9810c174
I plan to backport that one next.