Skip to content

Commit 5b8192c

Browse files
authored
Merge pull request #1294 from zhuliting/patch-1
remove unused variable _consecutive_production_enabled
2 parents 0ad21dc + 168e842 commit 5b8192c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

libraries/plugins/witness/include/graphene/witness/witness.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ namespace block_production_condition
4141
no_private_key = 4,
4242
low_participation = 5,
4343
lag = 6,
44-
consecutive = 7,
45-
exception_producing_block = 8
44+
exception_producing_block = 7
4645
};
4746
}
4847

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

8079
boost::program_options::variables_map _options;
8180
bool _production_enabled = false;
82-
bool _consecutive_production_enabled = false;
8381
uint32_t _required_witness_participation = 33 * GRAPHENE_1_PERCENT;
8482
uint32_t _production_skip_flags = graphene::chain::database::skip_nothing;
8583

libraries/plugins/witness/witness.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,6 @@ block_production_condition::block_production_condition_enum witness_plugin::bloc
196196
case block_production_condition::lag:
197197
elog("Not producing block because node didn't wake up within 2500ms of the slot time.");
198198
break;
199-
case block_production_condition::consecutive:
200-
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.");
201-
break;
202199
case block_production_condition::exception_producing_block:
203200
elog( "exception producing block" );
204201
break;

0 commit comments

Comments
 (0)