diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-10-28 00:47:26 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-10-28 00:47:26 -0400 |
commit | f41c68648c0b076ec2dec2bbc4492939fb98ee93 (patch) | |
tree | 3a81aaa43f411595181cf3d171e19fcf287911b3 | |
parent | Merge pull request #8525 (diff) | |
parent | Remove redundant check (diff) | |
download | monero-f41c68648c0b076ec2dec2bbc4492939fb98ee93.tar.xz |
Merge pull request #8527
e988530 Remove redundant check (SerHack)
-rw-r--r-- | src/daemon/rpc_command_executor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index 0d3688c76..a88c35638 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; |