Skip to content

Commit

Permalink
GH-1072 Revert: No reason to post if syncing from peer.
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Jun 7, 2023
1 parent 2fab062 commit 73644fd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3714,12 +3714,10 @@ namespace eosio {
void net_plugin_impl::on_accepted_block_header(const block_state_ptr& bs) {
update_chain_info();

if (!my_impl->sync_master->syncing_from_peer()) {
dispatcher->strand.post([bs]() {
fc_dlog(logger, "signaled accepted_block_header, blk num = ${num}, id = ${id}", ("num", bs->block_num)("id", bs->id));
my_impl->dispatcher->bcast_block(bs->block, bs->id);
});
}
dispatcher->strand.post([bs]() {
fc_dlog(logger, "signaled accepted_block_header, blk num = ${num}, id = ${id}", ("num", bs->block_num)("id", bs->id));
my_impl->dispatcher->bcast_block(bs->block, bs->id);
});
}

void net_plugin_impl::on_accepted_block(const block_state_ptr& ) {
Expand Down

0 comments on commit 73644fd

Please sign in to comment.