WIP: Resolve "staking=1 should be the default for MNs and SNs"
This should do the job:
mark@x230:~/src/crown-pos/src$ git diff 9efaaa1a778c7f34ca64aac84c55fdf7d3dabdfe init.cpp
diff --git a/src/init.cpp b/src/init.cpp
index 722c2c115..833c33929 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -801,6 +801,12 @@ bool AppInit2(boost::thread_group& threadGroup)
if (nFD - MIN_CORE_FILEDESCRIPTORS < nMaxConnections)
nMaxConnections = nFD - MIN_CORE_FILEDESCRIPTORS;
+ // -masternode or -systemnode imply staking
+ if (GetBoolArg("-masternode", false) || GetBoolArg("-systemnode", false)) {
+ if (SoftSetBoolArg("-staking", true))
+ LogPrintf("AppInit2 : parameter interaction: -masternode or -systemnode -> setting -staking=1\n");
+ }
+
// ********************************************************* Step 3: parameter-to-internal-flags
fDebug = !mapMultiArgs["-debug"].empty();