Skip to content

Commit

Permalink
Merge pull request #443 from bitshares/fix-399-debug-plugin-options
Browse files Browse the repository at this point in the history
Rename option of debug witness plugin, fix #399
  • Loading branch information
pmconrad authored Oct 28, 2017
2 parents 4aa7081 + 55239af commit da65bd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/plugins/debug_witness/debug_witness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void debug_witness_plugin::plugin_set_program_options(
{
auto default_priv_key = fc::ecc::private_key::regenerate(fc::sha256::hash(std::string("nathan")));
command_line_options.add_options()
("private-key", bpo::value<vector<string>>()->composing()->multitoken()->
("debug-private-key", bpo::value<vector<string>>()->composing()->multitoken()->
DEFAULT_VALUE_VECTOR(std::make_pair(chain::public_key_type(default_priv_key.get_public_key()), graphene::utilities::key_to_wif(default_priv_key))),
"Tuple of [PublicKey, WIF private key] (may specify multiple times)");
config_file_options.add(command_line_options);
Expand All @@ -63,9 +63,9 @@ void debug_witness_plugin::plugin_initialize(const boost::program_options::varia
ilog("debug_witness plugin: plugin_initialize() begin");
_options = &options;

if( options.count("private-key") )
if( options.count("debug-private-key") )
{
const std::vector<std::string> key_id_to_wif_pair_strings = options["private-key"].as<std::vector<std::string>>();
const std::vector<std::string> key_id_to_wif_pair_strings = options["debug-private-key"].as<std::vector<std::string>>();
for (const std::string& key_id_to_wif_pair_string : key_id_to_wif_pair_strings)
{
auto key_id_to_wif_pair = graphene::app::dejsonify<std::pair<chain::public_key_type, std::string> >(key_id_to_wif_pair_string);
Expand Down

0 comments on commit da65bd3

Please sign in to comment.