33 namespace block_production_condition
52 using graphene::app::plugin::plugin;
58 boost::program_options::options_description &command_line_options,
59 boost::program_options::options_description &config_file_options
65 void plugin_initialize(
const boost::program_options::variables_map& options )
override;
69 inline const fc::flat_map< chain::witness_id_type, fc::optional<chain::public_key_type> >&
get_witness_key_cache()
70 {
return _witness_key_cache; }
75 void schedule_production_loop();
78 void add_private_key(
const std::string& key_id_to_wif_pair_string);
81 void refresh_witness_key_cache();
83 boost::program_options::variables_map _options;
84 bool _production_enabled =
false;
85 bool _shutting_down =
false;
89 std::map<chain::public_key_type, fc::ecc::private_key, chain::pubkey_comparator> _private_keys;
90 std::set<chain::witness_id_type> _witnesses;
94 fc::flat_map< chain::witness_id_type, fc::optional<chain::public_key_type> > _witness_key_cache;