aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
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/rpc
parent7204c6434b944f6ad51b3c895837729d3aa56eea (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/rpc')
-rw-r--r--src/rpc/mining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp
index f294c815f6..78e80195be 100644
--- a/src/rpc/mining.cpp
+++ b/src/rpc/mining.cpp
@@ -773,7 +773,7 @@ static UniValue submitheader(const JSONRPCRequest& request)
}
BlockValidationState state;
- ProcessNewBlockHeaders({h}, state, Params(), /* ppindex */ nullptr, /* first_invalid */ nullptr);
+ ProcessNewBlockHeaders({h}, state, Params());
if (state.IsValid()) return NullUniValue;
if (state.IsError()) {
throw JSONRPCError(RPC_VERIFY_ERROR, FormatStateMessage(state));