diff --git a/plugins/producer_plugin/producer_plugin.cpp b/plugins/producer_plugin/producer_plugin.cpp index 732e8f436d..c5a6e4a593 100644 --- a/plugins/producer_plugin/producer_plugin.cpp +++ b/plugins/producer_plugin/producer_plugin.cpp @@ -631,7 +631,8 @@ class producer_plugin_impl : public std::enable_shared_from_thistimestamp < fc::minutes(5) || (block->block_num() % 1000 == 0)) { + auto now = fc::time_point::now(); + if (now - block->timestamp < fc::minutes(5) || (block->block_num() % 1000 == 0)) { std::string not_voted; for (const auto& f : missing_votes) { if (_finalizers.contains(f->public_key)) { @@ -643,8 +644,9 @@ class producer_plugin_impl : public std::enable_shared_from_thisblock_num())("id", id.str().substr(8,16))("v", not_voted)); + fc_ilog(vote_logger, "Block ${id}... #${n} @ ${t} produced by ${p}, latency: ${l}ms has no votes from finalizers: ${v}", + ("id", id.str().substr(8, 16))("n", block->block_num())("t", block->timestamp)("p", block->producer) + ("l", (now - block->timestamp).count() / 1000)("v", not_voted)); } } }