From 6689fc98c1edf81ef8a608c3cbe2685b1b5be251 Mon Sep 17 00:00:00 2001 From: cryptocode Date: Thu, 27 Jun 2019 18:15:59 +0200 Subject: [PATCH] Always notify on active difficulty updates (#2109) --- nano/node/active_transactions.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nano/node/active_transactions.cpp b/nano/node/active_transactions.cpp index 90131be4..ab422485 100644 --- a/nano/node/active_transactions.cpp +++ b/nano/node/active_transactions.cpp @@ -638,12 +638,8 @@ void nano::active_transactions::update_active_difficulty (std::unique_lock= node.network_params.network.publish_threshold); - bool notify_change = trended_active_difficulty != difficulty; trended_active_difficulty = difficulty; - if (notify_change) - { - node.observers.difficulty.notify (trended_active_difficulty); - } + node.observers.difficulty.notify (trended_active_difficulty); } uint64_t nano::active_transactions::active_difficulty ()