From c428622a5bb1e37b2e6ab2c52791ac05d9271238 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Sun, 28 Apr 2019 15:46:35 -0500 Subject: [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. --- src/net_processing.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/net_processing.cpp') diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 38d0461b1..6c9cf1ccb 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; -- cgit v1.2.3