minor auxpow fixes

This commit is contained in:
nzsquirrell
2015-08-25 20:21:41 +12:00
parent 20812d7aa7
commit 8f9e2b5427
2 changed files with 12 additions and 5 deletions
+8 -1
View File
@@ -1551,7 +1551,14 @@ bool CBlockHeader::CheckProofOfWork(int nHeight) const
{
if (auxpow.get() != NULL)
{
return error("CheckProofOfWork() : AUX POW is not allowed at this block");
if((algo == ALGO_SHA256D) || (algo == ALGO_SCRYPT))
{
return error("CheckProofOfWork() : AUX POW is not allowed at this block");
}
else
{
return error("CheckProofOfWork() : AUX POW is not allowed for this algo");
}
}
// Check if proof of work marches claimed amount