fix logic for fsconflock/mnconflock
@@ -1174,7 +1174,8 @@ bool AppInit2()
}
}
- if(GetBoolArg("-mnconflock", true) && pwalletMain || GetBoolArg("-fsconflock", true) && pwalletMain) {
+ if (pwalletMain) {
+ if(GetBoolArg("-fsconflock", true) & GetBoolArg("-mnconflock", true)) {
LOCK(pwalletMain->cs_wallet);
printf("Locking Fortunastakes:\n");
uint256 mnTxHash;
@@ -1192,7 +1193,7 @@ bool AppInit2()
printf(" %s %s - locked successfully\n", mne.getTxHash().c_str(), mne.getOutputIndex().c_str());
}
}
-
+ }
// Add any fortunastake.conf fortunastakes to the adrenaline nodes
BOOST_FOREACH(CFortunastakeConfig::CFortunastakeEntry mne, fortunastakeConfig.getEntries())
