Skip to content

Commit

Permalink
revert the change for my head vs peer lib check
Browse files Browse the repository at this point in the history
  • Loading branch information
linh2931 committed Sep 12, 2023
1 parent 0b3cd1f commit 3869235
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 @@ -2162,7 +2162,7 @@ namespace eosio {
c->peer_syncing_from_us = false;
return;
}
if (chain_info.head_num + min_blocks_distance < msg.last_irreversible_block_num) {
if (chain_info.head_num < msg.last_irreversible_block_num) {
peer_ilog( c, "handshake lib ${lib}, head ${head}, head id ${id}.. sync 1, head ${h}, lib ${l}",
("lib", msg.last_irreversible_block_num)("head", msg.head_num)("id", msg.head_id.str().substr(8,16))
("h", chain_info.head_num)("l", chain_info.lib_num) );
Expand Down

0 comments on commit 3869235

Please sign in to comment.