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.h | |
| 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.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 27121890f..feaaaad75 100644 --- a/src/main.h +++ b/src/main.h @@ -447,8 +447,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() |