Skip to content

Commit

Permalink
Remove redundant if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil committed Oct 13, 2020
1 parent eba39fa commit 5082a42
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/rpc/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,12 +576,7 @@ UniValue getblockhashes(const JSONRPCRequest& request)
std::vector<std::pair<uint256, unsigned int> > blockHashes;
bool found = false;

if (fActiveOnly) {
found = GetTimestampIndex(high, low, fActiveOnly, blockHashes);
}
else {
found = GetTimestampIndex(high, low, fActiveOnly, blockHashes);
}
found = GetTimestampIndex(high, low, fActiveOnly, blockHashes);

if (!found) {
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "No information available for block hashes");
Expand Down

0 comments on commit 5082a42

Please sign in to comment.