From f69b3ace03023e9b2790d2b547d885c64559b2c5 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Sat, 21 Apr 2018 00:20:20 +0100 Subject: [PATCH] Fix formatting. --- rai/node/bootstrap.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/rai/node/bootstrap.cpp b/rai/node/bootstrap.cpp index e62bb0299a..cf89f1635f 100644 --- a/rai/node/bootstrap.cpp +++ b/rai/node/bootstrap.cpp @@ -1030,23 +1030,23 @@ void rai::bootstrap_attempt::process_fork (MDB_txn * transaction_a, std::shared_ { std::weak_ptr this_w (shared_from_this ()); if (!node->active.start (transaction_a, std::make_pair (ledger_block, block_a), [this_w, root](std::shared_ptr, bool resolved) { - if (auto this_l = this_w.lock ()) - { - if (resolved) - { - rai::transaction transaction (this_l->node->store.environment, nullptr, false); - auto account (this_l->node->ledger.store.frontier_get (transaction, root)); - if (!account.is_zero ()) - { - this_l->requeue_pull (rai::pull_info (account, root, root)); - } - else if (this_l->node->ledger.store.account_exists (transaction, root)) - { - this_l->requeue_pull (rai::pull_info (root, rai::block_hash (0), rai::block_hash (0))); - } - } - } - })) + if (auto this_l = this_w.lock ()) + { + if (resolved) + { + rai::transaction transaction (this_l->node->store.environment, nullptr, false); + auto account (this_l->node->ledger.store.frontier_get (transaction, root)); + if (!account.is_zero ()) + { + this_l->requeue_pull (rai::pull_info (account, root, root)); + } + else if (this_l->node->ledger.store.account_exists (transaction, root)) + { + this_l->requeue_pull (rai::pull_info (root, rai::block_hash (0), rai::block_hash (0))); + } + } + } + })) { BOOST_LOG (node->log) << boost::str (boost::format ("Resolving fork between our block: %1% and block %2% both with root %3%") % ledger_block->hash ().to_string () % block_a->hash ().to_string () % block_a->root ().to_string ()); node->network.broadcast_confirm_req (ledger_block);