Halving network fanout since the previous value was extremely conservative.
This commit is contained in:
parent
2e90b992be
commit
e7ac637f5b
2 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ TEST (peer_container, list_fanout)
|
|||
ASSERT_FALSE (peers.insert (rai::endpoint (boost::asio::ip::address_v6::loopback (), 10000 + i), rai::protocol_version));
|
||||
}
|
||||
auto list2 (peers.list_fanout ());
|
||||
ASSERT_EQ (64, list2.size ());
|
||||
ASSERT_EQ (32, list2.size ());
|
||||
}
|
||||
|
||||
TEST (peer_container, rep_weight)
|
||||
|
|
|
@ -1830,7 +1830,7 @@ rai::process_return rai::node::process (rai::block const & block_a)
|
|||
// 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::deque<rai::endpoint> rai::peer_container::list_fanout ()
|
||||
{
|
||||
auto peers (random_set (2 * size_sqrt ()));
|
||||
auto peers (random_set (size_sqrt ()));
|
||||
std::deque<rai::endpoint> result;
|
||||
for (auto i (peers.begin ()), n (peers.end ()); i != n; ++i)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue