diff --git a/nano/node/scheduler/bucket.cpp b/nano/node/scheduler/bucket.cpp index 51ba1626a5..16e47abccf 100644 --- a/nano/node/scheduler/bucket.cpp +++ b/nano/node/scheduler/bucket.cpp @@ -35,7 +35,10 @@ void nano::scheduler::bucket::pop () void nano::scheduler::bucket::push (uint64_t time, std::shared_ptr block) { - queue.insert ({ time, block }); + const uint64_t bitmask = ~0b11111; + uint64_t rounded_time = time & bitmask; + + queue.insert ({ rounded_time, block }); if (queue.size () > maximum) { debug_assert (!queue.empty ());