forked from lthn/blockchain
fix loop variable type here and there (performance)
This commit is contained in:
parent
7b246312a8
commit
93b3ca4b66
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue