Skip to content

Commit

Permalink
GH-1091 Remove is_in_sync check for block notice send. This degrades …
Browse files Browse the repository at this point in the history
…badly.
  • Loading branch information
heifner committed Jan 14, 2025
1 parent 3627f4c commit 6fcd36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6fcd36a

Please sign in to comment.