Skip to content

Commit

Permalink
Add comment why vote spacing is skipped for replies
Browse files Browse the repository at this point in the history
  • Loading branch information
gr0vity committed Feb 5, 2025
1 parent d2811db commit d7db86d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nano/node/vote_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ void nano::vote_generator::reply (nano::unique_lock<nano::mutex> & lock_a, reque
auto const & [root, hash] = *i;
if (std::find (roots.begin (), roots.end (), root) == roots.end ())
{
// Vote spacing skipped for replies - allows all peers to request same vote
roots.push_back (root);
hashes.push_back (hash);
}
Expand Down

0 comments on commit d7db86d

Please sign in to comment.