diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-07-21 14:30:46 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-07-21 14:31:40 +0200 |
| commit | 381917f610e3c770acb5e323884e7eef6fd25841 (patch) | |
| tree | 72562fe250ed19c3bb5ef4d5093c52666927d789 /src/main.cpp | |
| parent | Merge #8341: Consensus: Remove calls to error() from ContextualCheckBlock (diff) | |
| parent | Trivial: Make CBlockIndex param const in ContextualCheckBlockHeader and Conte... (diff) | |
| download | discoin-381917f610e3c770acb5e323884e7eef6fd25841.tar.xz discoin-381917f610e3c770acb5e323884e7eef6fd25841.zip | |
Merge #8347: Trivial: Make CBlockIndex param const in ContextualCheckBlockHeader and ContextualCheckBlock
6f3d616 Trivial: Make CBlockIndex param const in ContextualCheckBlockHeader and ContextualCheckBlock (Jorge Timón)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 90c6f57ef..124bc57e7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3502,7 +3502,7 @@ std::vector<unsigned char> GenerateCoinbaseCommitment(CBlock& block, const CBloc return commitment; } -bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& state, const Consensus::Params& consensusParams, CBlockIndex * const pindexPrev, int64_t nAdjustedTime) +bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& state, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev, int64_t nAdjustedTime) { // Check proof of work if (block.nBits != GetNextWorkRequired(pindexPrev, &block, consensusParams)) @@ -3525,7 +3525,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta return true; } -bool ContextualCheckBlock(const CBlock& block, CValidationState& state, CBlockIndex * const pindexPrev) +bool ContextualCheckBlock(const CBlock& block, CValidationState& state, const CBlockIndex* pindexPrev) { const int nHeight = pindexPrev == NULL ? 0 : pindexPrev->nHeight + 1; const Consensus::Params& consensusParams = Params().GetConsensus(); |