Skip to content

Commit

Permalink
Check for out of date last irreversible block notice
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Sep 22, 2019
1 parent 79c90ff commit 0a61350
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 @@ -1396,8 +1396,8 @@ namespace eosio {
sync_known_lib_num = target;
}

if (!sync_required()) {
uint32_t bnum = chain_plug->chain().last_irreversible_block_num();
uint32_t bnum = chain_plug->chain().last_irreversible_block_num();
if (!sync_required() || target <= bnum) {
uint32_t hnum = chain_plug->chain().fork_db_pending_head_block_num();
fc_dlog( logger, "We are already caught up, my irr = ${b}, head = ${h}, target = ${t}",
("b",bnum)("h",hnum)("t",target));
Expand Down

0 comments on commit 0a61350

Please sign in to comment.