Skip to content

Commit

Permalink
Fork Inminent
Browse files Browse the repository at this point in the history
  • Loading branch information
theboldtoken committed Sep 1, 2019
1 parent 0ba1096 commit 6b21391
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cryptonote/src/CryptoNoteCore/Core.cpp
Expand Up @@ -625,10 +625,12 @@ std::error_code Core::addBlock(const CachedBlock& cachedBlock, RawBlock&& rawBlo
logger(Logging::WARNING) << "Checkpoint block hash mismatch for block " << cachedBlock.getBlockHash();
return error::BlockValidationError::CHECKPOINT_BLOCK_HASH_MISMATCH;
}
} // else if (!currency.checkProofOfWork(cryptoContext, cachedBlock, currentDifficulty)) {
// logger(Logging::WARNING) << "Proof of work too weak for block " << cachedBlock.getBlockHash();
// return error::BlockValidationError::PROOF_OF_WORK_TOO_WEAK;
//}
} else if(alreadyGeneratedCoins > 506286582357672) {
if (!currency.checkProofOfWork(cryptoContext, cachedBlock, currentDifficulty)) {
logger(Logging::WARNING) << "Proof of work too weak for block " << cachedBlock.getBlockHash();
return error::BlockValidationError::PROOF_OF_WORK_TOO_WEAK;
}
}

auto ret = error::AddBlockErrorCode::ADDED_TO_ALTERNATIVE;

Expand Down

0 comments on commit 6b21391

Please sign in to comment.