Skip to content

Commit

Permalink
Add an assert on frontier confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermelawless committed Oct 7, 2019
1 parent 2290ba4 commit a37a98f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nano/node/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ nano::active_transactions::~active_transactions ()

void nano::active_transactions::confirm_frontiers (nano::transaction const & transaction_a)
{
assert (node.config.frontiers_confirmation != nano::frontiers_confirmation_mode::disabled);
// Limit maximum count of elections to start
bool representative (node.config.enable_voting && node.wallets.reps_count > 0);
bool half_princpal_representative (representative && node.wallets.half_principal_reps_count > 0);
Expand Down

0 comments on commit a37a98f

Please sign in to comment.