diff options
author | John Newbery <john@johnnewbery.com> | 2019-04-28 15:46:35 -0500 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2019-10-29 15:46:45 -0400 |
commit | c428622a5bb1e37b2e6ab2c52791ac05d9271238 (patch) | |
tree | feca28c33aad7af0d295c76d906af7944050c41f /src/net_processing.cpp | |
parent | 7204c6434b944f6ad51b3c895837729d3aa56eea (diff) |
[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/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 38d0461b1f..6c9cf1ccb6 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1698,8 +1698,7 @@ bool static ProcessHeadersMessage(CNode *pfrom, CConnman *connman, const std::ve } BlockValidationState state; - CBlockHeader first_invalid_header; - if (!ProcessNewBlockHeaders(headers, state, chainparams, &pindexLast, &first_invalid_header)) { + if (!ProcessNewBlockHeaders(headers, state, chainparams, &pindexLast)) { if (state.IsInvalid()) { MaybePunishNodeForBlock(pfrom->GetId(), state, via_compact_block, "invalid header received"); return false; |