auxpow fixes

This commit is contained in:
nzsquirrell
2015-07-12 09:33:18 +12:00
parent 44aa3548ce
commit 35d6a558fa
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1533,7 +1533,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 && algo == ALGO_SCRYPT))
if ((nHeight >= GetAuxPowStartBlock()) && (algo == ALGO_SHA256D || algo == ALGO_SCRYPT))
{
// Prevent same work from being submitted twice:
// - this block must have our chain ID