Skip to content

Commit

Permalink
Apply the count parameter in json_handler::accounts_receivable()`
Browse files Browse the repository at this point in the history
The count limit got lost during the refactor in pull request #4496
  • Loading branch information
simpago committed Mar 24, 2024
1 parent 31f7f0a commit e97067f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/json_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ void nano::json_handler::accounts_receivable ()
if (!ec)
{
boost::property_tree::ptree peers_l;
for (auto current = node.ledger.receivable_upper_bound (transaction, account, 0), end = node.ledger.receivable_end (); current != end; ++current)
for (auto current = node.ledger.receivable_upper_bound (transaction, account, 0), end = node.ledger.receivable_end (); current != end && peers_l.size () < count; ++current)
{
auto const & [key, info] = *current;
if (include_only_confirmed && !node.ledger.block_confirmed (transaction, key.hash))
Expand Down

0 comments on commit e97067f

Please sign in to comment.