From f6163b1bc29e9e05be222be2550565afc6ac62b4 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Thu, 16 Mar 2017 19:58:35 -0500 Subject: [PATCH] Better variable wording. --- rai/node/bootstrap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rai/node/bootstrap.cpp b/rai/node/bootstrap.cpp index 3933ca0172..67910a3d37 100755 --- a/rai/node/bootstrap.cpp +++ b/rai/node/bootstrap.cpp @@ -567,12 +567,12 @@ void rai::bulk_pull_client::received_block (boost::system::error_code const & ec { expected = block->previous (); } - auto unchecked (false); + auto already_exists (false); { rai::transaction transaction (connection.node->store.environment, nullptr, false); - unchecked = connection.node->store.block_exists (transaction, hash); + already_exists = connection.node->store.block_exists (transaction, hash); } - if (unchecked) + if (!already_exists) { connection.attempt->cache.add_block (std::move (block)); }