aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSerHack <27734319+serhack@users.noreply.github.com>2022-08-22 10:19:12 +0200
committerGitHub <noreply@github.com>2022-08-22 10:19:12 +0200
commite988530e01a6b8ade2f435baeab003a03aa652c5 (patch)
tree73a621caca6e320f376aba4b00d09055bc12bd98 /src
parentMerge pull request #8435 (diff)
downloadmonero-e988530e01a6b8ade2f435baeab003a03aa652c5.tar.xz
Remove redundant check
Diffstat (limited to 'src')
-rw-r--r--src/daemon/rpc_command_executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index b6364ff77..4fe0b5f72 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -775,7 +775,7 @@ bool t_rpc_command_executor::print_blockchain_info(int64_t start_block_index, ui
return true;
}
}
- if (start_block_index < 0 && (uint64_t)-start_block_index >= ires.height)
+ if ((uint64_t)-start_block_index >= ires.height)
{
tools::fail_msg_writer() << "start offset is larger than blockchain height";
return true;