just learned that scrypt is too slow for CBlockTreeDB::LoadBlockIndexGuts.

disable CheckIndex() like litecoin does.
This commit is contained in:
Miguel Freitas 2013-12-30 15:12:52 -02:00
parent 46660a989a
commit 342d3e1478

View File

@ -756,7 +756,10 @@ public:
bool CheckIndex() const
{
return CheckProofOfWork(CBlock(GetBlockHeader()).GetPoWHash(), nBits);
/** Scrypt is used for block proof-of-work, but for purposes of performance the index internally uses sha256.
* This check was considered unneccessary given the other safeguards like the genesis and checkpoints. */
return true;
//return CheckProofOfWork(CBlock(GetBlockHeader()).GetPoWHash(), nBits);
}
enum { nMedianTimeSpan=11 };