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

Delayed production time - develop #8565

Merged
merged 1 commit into from
Feb 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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