aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2019-04-28 15:46:35 -0500
committerJohn Newbery <john@johnnewbery.com>2019-10-29 15:46:45 -0400
commitc428622a5bb1e37b2e6ab2c52791ac05d9271238 (patch)
treefeca28c33aad7af0d295c76d906af7944050c41f /src/validation.h
parent7204c6434b944f6ad51b3c895837729d3aa56eea (diff)
downloadbitcoin-c428622a5bb1e37b2e6ab2c52791ac05d9271238.tar.xz
[validation] Remove unused first_invalid parameter from ProcessNewBlockHeaders()
No callers use the returned value in first_invalid. Remove it from the function signature and don't set it in the function.
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/validation.h b/src/validation.h
index f346e5caac..a8d7e76a31 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -222,9 +222,8 @@ bool ProcessNewBlock(const CChainParams& chainparams, const std::shared_ptr<cons
* @param[out] state This may be set to an Error state if any error occurred processing them
* @param[in] chainparams The params for the chain we want to connect to
* @param[out] ppindex If set, the pointer will be set to point to the last new block index object for the given headers
- * @param[out] first_invalid First header that fails validation, if one exists
*/
-bool ProcessNewBlockHeaders(const std::vector<CBlockHeader>& block, BlockValidationState& state, const CChainParams& chainparams, const CBlockIndex** ppindex = nullptr, CBlockHeader* first_invalid = nullptr) LOCKS_EXCLUDED(cs_main);
+bool ProcessNewBlockHeaders(const std::vector<CBlockHeader>& block, BlockValidationState& state, const CChainParams& chainparams, const CBlockIndex** ppindex = nullptr) LOCKS_EXCLUDED(cs_main);
/** Open a block file (blk?????.dat) */
FILE* OpenBlockFile(const FlatFilePos &pos, bool fReadOnly = false);