diff --git a/nano/node/active_transactions.cpp b/nano/node/active_transactions.cpp index ef7dd5202d..29ad5099f8 100644 --- a/nano/node/active_transactions.cpp +++ b/nano/node/active_transactions.cpp @@ -426,7 +426,8 @@ nano::election_insertion_result nano::active_transactions::insert (std::shared_p debug_assert (block_a->has_sideband ()); nano::election_insertion_result result; - if (stopped) return result; + if (stopped) + return result; auto const root = block_a->qualified_root (); auto const existing = roots.get ().find (root); @@ -437,7 +438,7 @@ nano::election_insertion_result nano::active_transactions::insert (std::shared_p // Representative is defined as online if replying to live votes or rep_crawler queries node.online_reps.observe (rep_a); }; - result.election = nano::make_shared (node, block_a, nullptr, observe_rep_cb,election_behavior_a); + result.election = nano::make_shared (node, block_a, nullptr, observe_rep_cb, election_behavior_a); roots.get ().emplace (nano::active_transactions::conflict_info{ root, result.election }); blocks.emplace (block_a->hash (), result.election); @@ -465,7 +466,7 @@ nano::election_insertion_result nano::active_transactions::insert (std::shared_p } // Votes are generated for inserted or ongoing elections - debug_assert(result.election); + debug_assert (result.election); result.election->broadcast_vote (); trim (); return result;