Skip to content

Commit

Permalink
Fixed last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
durkmurder committed Jun 1, 2019
1 parent cccf1f5 commit e44880c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation.cpp
Expand Up @@ -297,7 +297,7 @@ CBlockIndex* FindForkInGlobalIndex(const CChain& chain, const CBlockLocator& loc
return chain.Genesis();
}

static int64_t GetMaxFutureBlockTime(CBlockIndex *pindexPrev, const Consensus::Params &params)
static int64_t GetMaxFutureBlockTime(const CBlockIndex *pindexPrev, const Consensus::Params &params)
{
return pindexPrev->nHeight > params.nMaxBlockSpacingFixDeploymentHeight ? MAX_FUTURE_BLOCK_TIME_POST_FORK :
MAX_FUTURE_BLOCK_TIME;
Expand Down Expand Up @@ -3416,7 +3416,7 @@ static bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationSta
return state.Invalid(false, REJECT_INVALID, "time-too-old", "block's timestamp is too early");

// Check timestamp
if (block.GetBlockTime() > nAdjustedTime + GetMaxFutureBlockTime(pindexPrev, params))
if (block.GetBlockTime() > nAdjustedTime + GetMaxFutureBlockTime(pindexPrev, consensusParams))
return state.Invalid(false, REJECT_INVALID, "time-too-new", "block timestamp too far in the future");

// Reject outdated version blocks when 95% (75% on testnet) of the network has upgraded:
Expand Down

0 comments on commit e44880c

Please sign in to comment.