Skip to content

Commit

Permalink
GH-1039 Start production after net_plugin is started to allow for new…
Browse files Browse the repository at this point in the history
… blocks to flow in from the network
  • Loading branch information
heifner committed Nov 27, 2024
1 parent 1da3692 commit 95dcc4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,10 @@ void producer_plugin_impl::plugin_startup() {
app().quit();
} );

schedule_production_loop();
// start production after net_plugin has started in case there are poison blocks in the fork database
app().executor().post(priority::high, exec_queue::read_write, [this]() {
schedule_production_loop();
});

dlog("producer plugin: plugin_startup() end");
}
Expand Down

0 comments on commit 95dcc4b

Please sign in to comment.