Merge pull request #8527

e988530 Remove redundant check (SerHack)
This commit is contained in:
luigi1111 2022-10-28 00:47:26 -04:00
commit f41c68648c
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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;