Remove ::fRequireStandard global

This commit is contained in:
MacroFake 2022-07-20 15:59:03 +02:00
parent fa468bdfb6
commit fa148602e6
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
9 changed files with 20 additions and 17 deletions

View file

@ -1004,10 +1004,6 @@ bool AppInitParameterInteraction(const ArgsManager& args, bool use_syscall_sandb
}
}
fRequireStandard = !args.GetBoolArg("-acceptnonstdtxn", !chainparams.RequireStandard());
if (!chainparams.IsTestChain() && !fRequireStandard) {
return InitError(strprintf(Untranslated("acceptnonstdtxn is not currently supported for %s chain"), chainparams.NetworkIDString()));
}
nBytesPerSigOp = args.GetIntArg("-bytespersigop", nBytesPerSigOp);
if (!g_wallet_init_interface.ParameterInteraction()) return false;