check collateral before submitting

This commit is contained in:
Evan Duffield 2015-04-07 09:41:31 -07:00
parent 5ceebf83f6
commit 0b225546f7

View File

@ -1492,6 +1492,14 @@ bool CDarksendPool::DoAutomaticDenominating(bool fDryRun, bool ready)
return false;
}
//check our collateral
if(txCollateral != CTransaction()){
if(!IsCollateralValid(txCollateral)) {
txCollateral = CTransaction();
LogPrintf("DoAutomaticDenominating -- Invalid collateral, resetting.\n");
}
}
//don't use the queues all of the time for mixing
if(nUseQueue > 33){