From 440d33a65debbf3bae5477685f8b41612970d93e Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 20 Oct 2023 15:00:59 -0500 Subject: [PATCH] GH-1784 Use ceil to take the most conservative approach to the user provided offset --- plugins/producer_plugin/producer_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/producer_plugin/producer_plugin.cpp b/plugins/producer_plugin/producer_plugin.cpp index 3b90583acd..08749dd47d 100644 --- a/plugins/producer_plugin/producer_plugin.cpp +++ b/plugins/producer_plugin/producer_plugin.cpp @@ -615,7 +615,8 @@ class producer_plugin_impl : public std::enable_shared_from_this(std::ceil(produce_block_offset_ms / static_cast(config::producer_repetitions))) ); } fc::microseconds get_produce_block_offset() const {