From 6fcd36ab2b6fc387e1974a1a334815a85f01edd3 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Tue, 14 Jan 2025 09:13:57 -0600 Subject: [PATCH] GH-1091 Remove is_in_sync check for block notice send. This degrades badly. --- plugins/net_plugin/net_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index 8a99cb83d7..fdc84fdc18 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -2764,7 +2764,7 @@ namespace eosio { if (cp->protocol_version >= proto_block_nack) { if (cp->consecutive_blocks_nacks > connection::consecutive_block_nacks_threshold) { // always broadcast our produced blocks, no need for block_notice if not in sync - if (!my_impl->is_producer(b->producer) && my_impl->sync_master->is_in_sync()) { + if (!my_impl->is_producer(b->producer)) { auto send_buffer = block_id_buff_factory.get_send_buffer( block_notice_message{id} ); boost::asio::post(cp->strand, [cp, send_buffer{std::move(send_buffer)}, bnum]() { cp->latest_blk_time = std::chrono::steady_clock::now();