Skip to content

Commit

Permalink
whitespace fixes - clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
dsiganos committed Jan 12, 2024
1 parent 6bc235c commit 345e1d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nano/node/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<tag_root> ().find (root);
Expand All @@ -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<nano::election> (node, block_a, nullptr, observe_rep_cb,election_behavior_a);
result.election = nano::make_shared<nano::election> (node, block_a, nullptr, observe_rep_cb, election_behavior_a);
roots.get<tag_root> ().emplace (nano::active_transactions::conflict_info{ root, result.election });
blocks.emplace (block_a->hash (), result.election);

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 345e1d8

Please sign in to comment.