Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8565 from EOSIO/delayed-production-time-dev
Browse files Browse the repository at this point in the history
Delayed production time - develop
  • Loading branch information
heifner authored Feb 4, 2020
2 parents 5dd9db0 + 484e53a commit 65623b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,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<fc::time_point>(*wake_up_time, producer_wake_up_time);
} else {
Expand Down

0 comments on commit 65623b7

Please sign in to comment.