Remove unused g_best_block

This commit is contained in:
Ryan Ofsky
2024-08-26 18:28:07 +02:00
committed by Sjors Provoost
parent e3a560ca68
commit 7942951e3f
4 changed files with 7 additions and 22 deletions

View File

@@ -303,7 +303,6 @@ void StopRPC(const std::any& context)
LogDebug(BCLog::RPC, "Stopping RPC\n");
WITH_LOCK(g_deadline_timers_mutex, deadlineTimers.clear());
DeleteAuthCookie();
g_best_block_cv.notify_all();
node::NodeContext& node = EnsureAnyNodeContext(context);
// The notifications interface doesn't exist between initialization step 4a and 7.
if (node.notifications) node.notifications->m_tip_block_cv.notify_all();