Verify that dsq.vin is actually in our masternode list (otherwise we might hit NULL and think that we use queue at the same time while we are not)

This commit is contained in:
UdjinM6 2015-03-13 19:00:44 +03:00
parent 3fdb01087d
commit 43712ff4de

View File

@ -1756,7 +1756,13 @@ bool CDarksendPool::DoAutomaticDenominating(bool fDryRun, bool ready)
}
}
pSubmittedToMasternode = mnodeman.Find(dsq.vin);
CMasternode* pmn = mnodeman.Find(dsq.vin);
if(pmn == NULL)
{
LogPrintf("DoAutomaticDenominating --- dsq vin %s is not in masternode list!", dsq.vin.ToString());
continue;
}
pSubmittedToMasternode = pmn;
vecMasternodesUsed.push_back(dsq.vin);
sessionDenom = dsq.nDenom;