Lock coins in masternode.conf regardless of masternode state (#1096)
* Lock coins in masternode.conf regardless of masternode state of local node * Prevent log masternode.conf messages when file is empty
This commit is contained in:
parent
c0a830aa8e
commit
0cc4997501
@ -1802,10 +1802,11 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
} else {
|
||||
return InitError(_("You must specify a masternodeprivkey in the configuration. Please see documentation for help."));
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
LogPrintf("Using masternode config file %s\n", GetMasternodeConfigFile().string());
|
||||
|
||||
if(GetBoolArg("-mnconflock", true) && pwalletMain) {
|
||||
if(GetBoolArg("-mnconflock", true) && pwalletMain && (masternodeConfig.getCount() > 0)) {
|
||||
LOCK(pwalletMain->cs_wallet);
|
||||
LogPrintf("Locking Masternodes:\n");
|
||||
uint256 mnTxHash;
|
||||
@ -1823,7 +1824,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
LogPrintf(" %s %s - locked successfully\n", mne.getTxHash(), mne.getOutputIndex());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
nLiquidityProvider = GetArg("-liquidityprovider", nLiquidityProvider);
|
||||
nLiquidityProvider = std::min(std::max(nLiquidityProvider, 0), 100);
|
||||
|
Loading…
Reference in New Issue
Block a user