Skip to content

Commit

Permalink
GH-49 Revert close if not seen block. You might not see a block if yo…
Browse files Browse the repository at this point in the history
…u sent them the block or if you are syncing.
  • Loading branch information
heifner committed Aug 25, 2022
1 parent 5b61b95 commit 3091b8d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1162,11 +1162,10 @@ namespace eosio {
}
return;
} else if( latest_blk_time > 0 ) {
const tstamp timeout = std::max(hb_timeout*2, 2*std::chrono::milliseconds(config::block_interval_ms).count());
const tstamp timeout = std::max(hb_timeout/2, 2*std::chrono::milliseconds(config::block_interval_ms).count());
if ( current_time > latest_blk_time + timeout ) {
no_retry = benign_other;
peer_wlog(this, "block timeout");
close();
send_handshake();
return;
}
}
}
Expand Down

0 comments on commit 3091b8d

Please sign in to comment.