Skip to content

Commit

Permalink
Merge pull request #249 from AntelopeIO/GH-224-lib-advance-main
Browse files Browse the repository at this point in the history
[1.0-beta2 -> main] P2P: Send handshake when in lib_catchup and verify catchup is called
  • Loading branch information
heifner authored Jun 7, 2024
2 parents 2775315 + 8e41c8d commit 1c60b88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2393,8 +2393,10 @@ namespace eosio {
("ne", sync_next_expected_num)("id", id.str().substr( 8, 16 )) );
}
auto chain_info = my_impl->get_chain_info();
if( sync_state == lib_catchup || num < chain_info.lib_num )
if( sync_state == lib_catchup || num < chain_info.lib_num ) {
c->send_handshake();
return false;
}
set_state( head_catchup );
{
fc::lock_guard g_conn( c->conn_mtx );
Expand Down

0 comments on commit 1c60b88

Please sign in to comment.