Skip to content

Commit

Permalink
Fixed --disablewallet crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Duffield committed Aug 6, 2015
1 parent fca0a6d commit f94d980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/masternode-budget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)){
Expand Down

0 comments on commit f94d980

Please sign in to comment.