From 089862cb3fe66216b87c9a7118f8bee058124bf3 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Fri, 31 Jan 2020 11:27:42 +0000 Subject: [PATCH] Removing redundant code section. --- nano/node/wallet.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/nano/node/wallet.cpp b/nano/node/wallet.cpp index 3e3dc9ae..2de35066 100644 --- a/nano/node/wallet.cpp +++ b/nano/node/wallet.cpp @@ -1455,23 +1455,6 @@ void nano::work_watcher::watching (nano::qualified_root const & root_a, std::sha if (!ec) { - { - auto hash (block_a->hash ()); - nano::lock_guard active_guard (watcher_l->node.active.mutex); - auto existing (watcher_l->node.active.roots.find (root_a)); - if (existing != watcher_l->node.active.roots.end ()) - { - auto election (existing->election); - if (election->status.winner->hash () == hash) - { - election->status.winner = block; - } - auto current (election->blocks.find (hash)); - assert (current != election->blocks.end ()); - current->second = block; - } - } - watcher_l->node.network.flood_block (block, false); watcher_l->node.active.update_difficulty (block); watcher_l->update (root_a, block); updated_l = true;