diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2016-07-17 01:34:35 +0200 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2016-07-17 01:43:15 +0200 |
commit | 6f3d616dc8d6840c2293ffadd8cc3209f1100193 (patch) | |
tree | 883f4080296e4b1b1364978f47fcd5822e773a6f /src/main.h | |
parent | bc94b87487824c6fba45788facf96faba97a4aa6 (diff) |
Trivial: Make CBlockIndex param const in ContextualCheckBlockHeader and ContextualCheckBlock
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.h b/src/main.h index 7ea570d859..561f2eceea 100644 --- a/src/main.h +++ b/src/main.h @@ -444,8 +444,8 @@ bool CheckBlock(const CBlock& block, CValidationState& state, const Consensus::P /** Context-dependent validity checks. * By "context", we mean only the previous block headers, but not the UTXO * set; UTXO-related validity checks are done in ConnectBlock(). */ -bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& state, const Consensus::Params& consensusParams, CBlockIndex* pindexPrev, int64_t nAdjustedTime); -bool ContextualCheckBlock(const CBlock& block, CValidationState& state, CBlockIndex *pindexPrev); +bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& state, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev, int64_t nAdjustedTime); +bool ContextualCheckBlock(const CBlock& block, CValidationState& state, const CBlockIndex* pindexPrev); /** Apply the effects of this block (with given index) on the UTXO set represented by coins. * Validity checks that depend on the UTXO set are also done; ConnectBlock() |