From 8b3361d4763aa4bfa2e032c01749c2e3dfc2719f Mon Sep 17 00:00:00 2001 From: myriadcoin Date: Fri, 17 Jul 2015 16:42:25 +0200 Subject: [PATCH] Merge mine scrypt, sha and qubit --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index edffc22c..ff9b397d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1523,7 +1523,8 @@ bool CheckProofOfWork(uint256 hash, unsigned int nBits, int algo) bool CBlockHeader::CheckProofOfWork(int nHeight) const { int algo = GetAlgo(); - if (nHeight >= GetAuxPowStartBlock()) + if ( (nHeight >= GetAuxPowStartBlock()) && + ((algo = ALGO_SHA256D) || (algo = ALGO_SCRYPT) || (algo = ALGO_QUBIT)) ) { // Prevent same work from being submitted twice: // - this block must have our chain ID