Skip to content

Commit

Permalink
Merge pull request #1294 from zhuliting/patch-1
Browse files Browse the repository at this point in the history
remove unused variable  _consecutive_production_enabled
  • Loading branch information
abitmore authored Aug 29, 2018
2 parents 0ad21dc + 168e842 commit 5b8192c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ namespace block_production_condition
no_private_key = 4,
low_participation = 5,
lag = 6,
consecutive = 7,
exception_producing_block = 8
exception_producing_block = 7
};
}

Expand Down Expand Up @@ -79,7 +78,6 @@ class witness_plugin : public graphene::app::plugin {

boost::program_options::variables_map _options;
bool _production_enabled = false;
bool _consecutive_production_enabled = false;
uint32_t _required_witness_participation = 33 * GRAPHENE_1_PERCENT;
uint32_t _production_skip_flags = graphene::chain::database::skip_nothing;

Expand Down
3 changes: 0 additions & 3 deletions libraries/plugins/witness/witness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,6 @@ block_production_condition::block_production_condition_enum witness_plugin::bloc
case block_production_condition::lag:
elog("Not producing block because node didn't wake up within 2500ms of the slot time.");
break;
case block_production_condition::consecutive:
elog("Not producing block because the last block was generated by the same witness.\nThis node is probably disconnected from the network so block production has been disabled.\nDisable this check with --allow-consecutive option.");
break;
case block_production_condition::exception_producing_block:
elog( "exception producing block" );
break;
Expand Down

0 comments on commit 5b8192c

Please sign in to comment.