1
0
Fork 0
forked from lthn/blockchain

fix loop variable type here and there (performance)

This commit is contained in:
sowle 2024-02-17 12:45:43 +01:00
parent 7b246312a8
commit 93b3ca4b66
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -3161,7 +3161,7 @@ bool blockchain_storage::get_pos_votes(uint64_t start_index, uint64_t end_index,
summary[v.first].no++;
}
}
for (const auto s_entry : summary)
for (const auto& s_entry : summary)
{
r.votes.push_back(s_entry.second);
r.votes.back().proposal_id = s_entry.first;