[bitcoin/bitcoin] Don’t edit Chainparams after initialization (#13311)

Empact commented on this pull request.

> @@ -280,7 +276,7 @@ class CTestNetParams : public CChainParams {
*/
class CRegTestParams : public CChainParams {
public:
— CRegTestParams() {
+ CRegTestParams(ArgsManager& args) {

Better to just pass the needed arg IMO, and only couple these classes if necessary.
https://martinfowler.com/bliki/Yagni.html