Browse Source

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

disable CheckIndex() like litecoin does.
miguelfreitas
Miguel Freitas 11 years ago
parent
commit
342d3e1478
  1. 5
      src/main.h

5
src/main.h

@ -756,7 +756,10 @@ public: @@ -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 };

Loading…
Cancel
Save