Skip to content

Commit d5a011c

Browse files
committed
Log template prune events
1 parent fe42cf3 commit d5a011c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sv2/template_provider.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ void Sv2TemplateProvider::PruneBlockTemplateCache()
556556
uint256 prev_hash = m_best_prev_hash;
557557
std::erase_if(m_block_template_cache, [prev_hash] (const auto& kv) {
558558
if (kv.second.first != prev_hash) {
559+
LogTrace(BCLog::SV2, "Prune stale template id=%lu (%zus after new tip)", kv.first, STALE_TEMPLATE_GRACE_PERIOD);
559560
return true;
560561
}
561562
return false;

0 commit comments

Comments
 (0)