diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index 5e8909cb91..68a968a4c1 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -1792,8 +1792,8 @@ namespace eosio { } // number of blocks syncing node is behind from a peer node uint32_t nblk_behind_by_net_latency = static_cast(network_latency_ns / block_interval_ns); - // 2x for time it takes for message to reach back to peer node, +1 to compensate for integer division truncation - uint32_t nblk_combined_latency = 2 * nblk_behind_by_net_latency + 1; + // 2x for time it takes for message to reach back to peer node + uint32_t nblk_combined_latency = 2 * nblk_behind_by_net_latency; // message in the log below is used in p2p_high_latency_test.py test peer_dlog(c, "Network latency is ${lat}ms, ${num} blocks discrepancy by network latency, ${tot_num} blocks discrepancy expected once message received", ("lat", network_latency_ns/1000000)("num", nblk_behind_by_net_latency)("tot_num", nblk_combined_latency));