Skip to content

Commit

Permalink
Revert account store iterator in bootstrap_server (#4688)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev authored Aug 3, 2024
1 parent bbe6110 commit b57e93c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nano/node/bootstrap/bootstrap_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,7 @@ nano::asc_pull_ack nano::bootstrap_server::process (secure::transaction const &
response.type = nano::asc_pull_type::frontiers;

nano::asc_pull_ack::frontiers_payload response_payload{};

for (auto it = ledger.any.account_lower_bound (transaction, request.start), end = ledger.any.account_end (); it != end && response_payload.frontiers.size () < request.count; ++it)
for (auto it = store.account.begin (transaction, request.start), end = store.account.end (); it != end && response_payload.frontiers.size () < request.count; ++it)
{
response_payload.frontiers.emplace_back (it->first, it->second.head);
}
Expand Down

0 comments on commit b57e93c

Please sign in to comment.