|
//if (!CheckProofOfWork(pindexNew->GetBlockHash(), pindexNew->nBits, consensusParams)) |
thanks for your work. however I wanna know why it removed and is it enough safe for block validation?
i think its LTC's way, but not for bitzeny...
// Litecoin: Disable PoW Sanity check while loading block index from disk.
// We use the sha256 hash for the block index for performance reasons, which is recorded for later use.
// CheckProofOfWork() uses the scrypt hash which is discarded after a block is accepted.
// While it is technically feasible to verify the PoW, doing so takes several minutes as it
// requires recomputing every PoW hash during every Litecoin startup.
// We opt instead to simply trust the data that is on your local disk.
//if (!CheckProofOfWork(pindexNew->GetBlockHash(), pindexNew->nBits, consensusParams))
// return error("%s: CheckProofOfWork failed: %s", __func__, pindexNew->ToString());
bitzeny/src/txdb.cpp
Line 290 in 18e6981
thanks for your work. however I wanna know why it removed and is it enough safe for block validation?
i think its LTC's way, but not for bitzeny...