mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-03 10:25:17 +00:00
just learned that scrypt is too slow for CBlockTreeDB::LoadBlockIndexGuts.
disable CheckIndex() like litecoin does.
This commit is contained in:
parent
46660a989a
commit
342d3e1478
@ -756,7 +756,10 @@ public:
|
|||||||
|
|
||||||
bool CheckIndex() const
|
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 };
|
enum { nMedianTimeSpan=11 };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user