From 6bb23f263515edc130cd5821f2785ca978641a8e Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Tue, 4 Feb 2020 11:24:37 -0500 Subject: [PATCH] Revert #7791 calculation for start of production was correct and now is one block interval too late. --- plugins/producer_plugin/producer_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/producer_plugin/producer_plugin.cpp b/plugins/producer_plugin/producer_plugin.cpp index 48b32674c85..4e03d0a0021 100644 --- a/plugins/producer_plugin/producer_plugin.cpp +++ b/plugins/producer_plugin/producer_plugin.cpp @@ -1866,7 +1866,7 @@ void producer_plugin_impl::schedule_delayed_production_loop(const std::weak_ptr< for (const auto&p: _producers) { auto next_producer_block_time = calculate_next_block_time(p, current_block_time); if (next_producer_block_time) { - auto producer_wake_up_time = *next_producer_block_time; + auto producer_wake_up_time = *next_producer_block_time - fc::microseconds(config::block_interval_us); if (wake_up_time) { wake_up_time = std::min(*wake_up_time, producer_wake_up_time); } else {