Skip to content

Commit

Permalink
[Consensus] Guard time checks changes
Browse files Browse the repository at this point in the history
Guard these changes against the protocol version change enforcement
  • Loading branch information
Warrows committed Jun 17, 2019
1 parent 105ee5f commit 88705a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ bool CheckProofOfStake(const CBlock block, uint256& hashProofOfStake, std::uniqu

unsigned int nBlockFromTime = blockfrom.nTime;
unsigned int nTxTime = block.nTime;
if (!txin.IsZerocoinSpend()) { //Equivalent for zPIV is checked above in ContextualCheckZerocoinStake()
if (!txin.IsZerocoinSpend() && nPreviousBlockHeight >= Params().Zerocoin_Block_Public_Spend_Enabled() - 1) { //Equivalent for zPIV is checked above in ContextualCheckZerocoinStake()
if (nTxTime < nBlockFromTime) // Transaction timestamp nTxTime
return error("CheckStakeKernelHash() : nTime violation - nBlockFromTime=%d nTimeTx=%d", nBlockFromTime, nTxTime);
if (nBlockFromTime + nStakeMinAge > nTxTime) // Min age requirement
Expand Down

0 comments on commit 88705a6

Please sign in to comment.