auxpow update

This commit is contained in:
myriadcoin
2015-07-11 10:20:09 +02:00
parent df3976ca8e
commit 876f2fd9ab
5 changed files with 260 additions and 29 deletions
+1 -1
View File
@@ -1511,7 +1511,7 @@ bool CheckProofOfWork(uint256 hash, unsigned int nBits, int algo)
bool CBlockHeader::CheckProofOfWork(int nHeight) const
{
int algo = GetAlgo();
if ((nHeight >= GetAuxPowStartBlock()) && (algo == ALGO_SHA256D))
if ((nHeight >= GetAuxPowStartBlock()) && (algo == ALGO_SHA256D && algo == ALGO_SCRYPT))
{
// Prevent same work from being submitted twice:
// - this block must have our chain ID