Remove redundant check

This commit is contained in:
SerHack 2022-08-22 10:19:12 +02:00 committed by wowario
parent a6fc8392c9
commit 64d851c1e8
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111

View file

@ -766,7 +766,7 @@ bool t_rpc_command_executor::print_blockchain_info(int64_t start_block_index, ui
return true; 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"; tools::fail_msg_writer() << "start offset is larger than blockchain height";
return true; return true;