Implementation based on comments/requirements in issue #11901 quoted below:
- add a configuration option ‘–enable-mainnet’ which defaults to false
- When true, behavior is unaffected (is set to true by the gitian builds).
- When false (the default for someone cloning the repo, building with no configuration options), the resulting binary will require new ’enablemainnet’ option to launch the daemon or Qt GUI with main net.
- This prevents developers or downstream system integrators from accidentally corrupting main net
- If the configure option is used, mainnet should be the default.
- Only if configured with –disable-mainnet (default) should a command-line option be required.
Fixes #11901