You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (nPreviousBlockHeight < Params().Zerocoin_Block_V2_Start())
356
+
returnerror("%s: zPIV stake block is less than allowed start height", __func__);
357
+
358
+
if (CZPivStake* zPIV = dynamic_cast<CZPivStake*>(stake)) {
359
+
CBlockIndex* pindexFrom = zPIV->GetIndexFrom();
360
+
if (!pindexFrom)
361
+
returnerror("%s: failed to get index associated with zPIV stake checksum", __func__);
362
+
363
+
if (chainActive.Height() - pindexFrom->nHeight < Params().Zerocoin_RequiredStakeDepth())
364
+
returnerror("%s: zPIV stake does not have required confirmation depth. Current height %d, stakeInput height %d.", __func__, chainActive.Height(), pindexFrom->nHeight);
365
+
366
+
//The checksum needs to be the exact checksum from 200 blocks ago
returnerror("%s: accumulator checksum is different than the block 200 blocks previous. stake=%d block200=%d", __func__, zPIV->GetChecksum(), nChecksum200);
371
+
} else {
372
+
returnerror("%s: dynamic_cast of stake ptr failed", __func__);
373
+
}
374
+
375
+
returntrue;
376
+
}
377
+
353
378
// Check kernel hash target and coinstake signature
returnerror("%s: zPIV stake block is less than allowed start height", __func__);
4698
-
4699
-
if (CZPivStake* zPIV = dynamic_cast<CZPivStake*>(stake)) {
4700
-
CBlockIndex* pindexFrom = zPIV->GetIndexFrom();
4701
-
if (!pindexFrom)
4702
-
returnerror("%s: failed to get index associated with zPIV stake checksum", __func__);
4703
-
4704
-
if (chainActive.Height() - pindexFrom->nHeight < Params().Zerocoin_RequiredStakeDepth())
4705
-
returnerror("%s: zPIV stake does not have required confirmation depth. Current height %d, stakeInput height %d.", __func__, chainActive.Height(), pindexFrom->nHeight);
4706
-
4707
-
//The checksum needs to be the exact checksum from 200 blocks ago
returnerror("%s: accumulator checksum is different than the block 200 blocks previous. stake=%d block200=%d", __func__, zPIV->GetChecksum(), nChecksum200);
4712
-
} else {
4713
-
returnerror("%s: dynamic_cast of stake ptr failed", __func__);
0 commit comments