From a3ea5fae31b7cec441aa6f7bf5ababe8b2d4b95f Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Mon, 6 May 2024 14:43:08 +0100 Subject: [PATCH] Add tracing for removed item. --- nano/node/scheduler/priority.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nano/node/scheduler/priority.cpp b/nano/node/scheduler/priority.cpp index bbdc04f65e..a9c4b2b603 100644 --- a/nano/node/scheduler/priority.cpp +++ b/nano/node/scheduler/priority.cpp @@ -96,6 +96,7 @@ std::shared_ptr nano::scheduler::priority::activate (secure::transa { node.logger.trace (nano::log::type::election_scheduler, nano::log::detail::block_overflow, nano::log::arg{ "block", block->hash ().to_string () }, + nano::log::arg{ "removed", removed->hash ().to_string () }, nano::log::arg{ "time", time_priority.time_since_epoch ().count () }); // Bucket was full and another block was lowest priority auto inserted = tracking.emplace (block->hash (), &bucket); @@ -108,6 +109,7 @@ std::shared_ptr nano::scheduler::priority::activate (secure::transa { node.logger.trace (nano::log::type::election_scheduler, nano::log::detail::block_reject, nano::log::arg{ "block", block->hash ().to_string () }, + nano::log::arg{ "removed", removed->hash ().to_string () }, nano::log::arg{ "time", time_priority.time_since_epoch ().count () }); lock.unlock (); // Bucket was full and block inserted was lowest priority