Fixed --disablewallet crash
This commit is contained in:
parent
fca0a6d4b8
commit
f94d9803c6
@ -1499,7 +1499,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||||||
//get the mode of budget voting for this masternode
|
//get the mode of budget voting for this masternode
|
||||||
strBudgetMode = GetArg("-budgetvotemode", "auto");
|
strBudgetMode = GetArg("-budgetvotemode", "auto");
|
||||||
|
|
||||||
if(GetBoolArg("-mnconflock", true)) {
|
if(GetBoolArg("-mnconflock", true) && pwalletMain) {
|
||||||
LOCK(pwalletMain->cs_wallet);
|
LOCK(pwalletMain->cs_wallet);
|
||||||
LogPrintf("Locking Masternodes:\n");
|
LogPrintf("Locking Masternodes:\n");
|
||||||
uint256 mnTxHash;
|
uint256 mnTxHash;
|
||||||
|
@ -149,6 +149,7 @@ void CBudgetManager::SubmitFinalBudget()
|
|||||||
|
|
||||||
//create fee tx
|
//create fee tx
|
||||||
CTransaction tx;
|
CTransaction tx;
|
||||||
|
|
||||||
if(!mapCollateral.count(tempBudget.GetHash())){
|
if(!mapCollateral.count(tempBudget.GetHash())){
|
||||||
CWalletTx wtx;
|
CWalletTx wtx;
|
||||||
if(!pwalletMain->GetBudgetSystemCollateralTX(wtx, tempBudget.GetHash(), false)){
|
if(!pwalletMain->GetBudgetSystemCollateralTX(wtx, tempBudget.GetHash(), false)){
|
||||||
|
Loading…
Reference in New Issue
Block a user