Skip to content

Commit

Permalink
Better variable wording.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Mar 17, 2017
1 parent 5bed27d commit f6163b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rai/node/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit f6163b1

Please sign in to comment.