Skip to content

Commit

Permalink
Fix compiler warning on_get_transactions_details_by_heights
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Mar 13, 2022
1 parent 96aace6 commit 7cfc682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rpc/RpcServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ bool RpcServer::onGetTransactionDetailsByHeights(const COMMAND_RPC_GET_TRANSACTI

uint32_t upperBound = std::min<uint32_t>(req.heights[1], m_core.getTopBlockIndex());

for (size_t i = 0; i < (upperBound - req.heights[0]); i++) {
for (uint32_t i = 0; i < (upperBound - req.heights[0]); i++) {
heights.push_back(req.heights[0] + i);
}
}
Expand Down

0 comments on commit 7cfc682

Please sign in to comment.