Fixed --disablewallet crash

This commit is contained in:
Evan Duffield 2015-08-06 16:09:22 -07:00
parent fca0a6d4b8
commit f94d9803c6
2 changed files with 2 additions and 1 deletions

View File

@ -1499,7 +1499,7 @@ bool AppInit2(boost::thread_group& threadGroup)
//get the mode of budget voting for this masternode
strBudgetMode = GetArg("-budgetvotemode", "auto");
if(GetBoolArg("-mnconflock", true)) {
if(GetBoolArg("-mnconflock", true) && pwalletMain) {
LOCK(pwalletMain->cs_wallet);
LogPrintf("Locking Masternodes:\n");
uint256 mnTxHash;

View File

@ -149,6 +149,7 @@ void CBudgetManager::SubmitFinalBudget()
//create fee tx
CTransaction tx;
if(!mapCollateral.count(tempBudget.GetHash())){
CWalletTx wtx;
if(!pwalletMain->GetBudgetSystemCollateralTX(wtx, tempBudget.GetHash(), false)){