From d555eae77a564550c76cc541a47d297a1dcd59d1 Mon Sep 17 00:00:00 2001 From: Guilherme Lawless Date: Fri, 15 May 2020 14:41:51 +0100 Subject: [PATCH] Republishing a vote to principal representatives (#2772) This behavior was recently changed as part of https://github.com/nanocurrency/nano-node/pull/2468 . This specific change has the least impact to bandwidth usage out of all changes in that commit. The list of peers to which a new vote is republished now includes PRs. Fanout is unchanged at `.5 * sqrt(peers)`. The effective fanout change on the main network is from ~14 to ~17. This change allows PRs that do not directly connect to other PRs to still see their votes. Ensuring PR connectivity is another approach that will be explored in the future. --- nano/node/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/node/network.cpp b/nano/node/network.cpp index 34355099..58a57189 100644 --- a/nano/node/network.cpp +++ b/nano/node/network.cpp @@ -216,7 +216,7 @@ void nano::network::flood_block_initial (std::shared_ptr const & bl void nano::network::flood_vote (std::shared_ptr const & vote_a, float scale) { nano::confirm_ack message (vote_a); - for (auto & i : list_non_pr (fanout (scale))) + for (auto & i : list (fanout (scale))) { i->send (message, nullptr); }