Skip to content

Commit

Permalink
Specifying minimum fanout of 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu authored and pwojcikdev committed Jan 30, 2025
1 parent 2bf3942 commit 0b0decc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ std::deque<std::shared_ptr<nano::transport::channel>> nano::network::list_non_pr
// Simulating with sqrt_broadcast_simulate shows we only need to broadcast to sqrt(total_peers) random peers in order to successfully publish to everyone with high probability
std::size_t nano::network::fanout (float scale) const
{
auto fanout_l = std::max (1.0f, size_log ());
auto fanout_l = std::max (2.0f, size_log ());
return static_cast<std::size_t> (std::ceil (scale * fanout_l));
}

Expand Down

0 comments on commit 0b0decc

Please sign in to comment.