Do not call CheckKernel() twice
This commit is contained in:
@@ -200,10 +200,13 @@ bool CheckKernel(CBlockIndex* pindexPrev, unsigned int nBits, uint32_t nTime, co
|
||||
} else {
|
||||
//found in cache
|
||||
const CStakeCache& stake = it->second;
|
||||
/*
|
||||
if (CheckStakeKernelHash(pindexPrev, nBits, new CCoins(stake.txPrev, pindexPrev->nHeight), prevout, nTime)) {
|
||||
// Cache could potentially cause false positive stakes in the event of deep reorgs, so check without cache also
|
||||
return CheckKernel(pindexPrev, nBits, nTime, prevout);
|
||||
}
|
||||
*/
|
||||
return CheckStakeKernelHash(pindexPrev, nBits, new CCoins(stake.txPrev, pindexPrev->nHeight), prevout, nTime);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user