Rebroadcasting directly to reps was causing reps to receive much more traffic than they needed to. This should greatly reduce the amount of traffic received in high-load situations.

This commit is contained in:
clemahieu 2018-02-04 23:38:40 -06:00
commit 6b9dd6596b

View file

@ -193,7 +193,6 @@ bool confirm_block (MDB_txn * transaction_a, rai::node & node_a, rai::endpoint &
void rai::network::republish_block (MDB_txn * transaction, std::shared_ptr<rai::block> block)
{
rebroadcast_reps (block);
auto hash (block->hash ());
auto list (node.peers.list_sqrt ());
// If we're a representative, broadcast a signed confirm, otherwise an unsigned publish