Skip to content

Commit

Permalink
Fix sync check for lib
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Dec 6, 2018
1 parent f3255af commit 52a6f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ namespace eosio {
//
// 0. my head block id == peer head id means we are all caught up block wise
// 1. my head block num < peer lib - start sync locally
// 2. my lib > peer head num - send an last_irr_catch_up notice if not the first generation
// 2. my lib > peer lib - send an last_irr_catch_up notice if not the first generation
//
// 3 my head block num <= peer head block num - update sync state and send a catchup request
// 4 my head block num > peer block num send a notice catchup if this is not the first generation
Expand All @@ -1415,7 +1415,7 @@ namespace eosio {
}
return;
}
if (lib_num > msg.head_num ) {
if (lib_num > msg.last_irreversible_block_num ) {
fc_dlog(logger, "sync check state 2");
if (msg.generation > 1 || c->protocol_version > proto_base) {
notice_message note;
Expand Down

0 comments on commit 52a6f19

Please sign in to comment.