1106 {
1110 register_producer->add_option(
"url",
url,
localized(
"The URL where info about producer can be found"),
true);
1111 register_producer->add_option(
"location",
loc,
localized(
"Relative location for purpose of nearest neighbor scheduling"),
true);
1113
1114
1115 register_producer->callback([this] {
1117 try {
1120
1124 });
1125 }
#define SYS_RETHROW_EXCEPTIONS(exception_type, FORMAT,...)
App * add_subcommand(std::string subcommand_name="", std::string subcommand_description="")
Add a subcommand. Inherits INHERITABLE and OptionDefaults, and help flag.
Option * add_option(std::string option_name, callback_t option_callback, std::string option_description="", bool defaulted=false, std::function< std::string()> func={})
CRTP * required(bool value=true)
Set the option as required.
#define localized(str,...)
fc::crypto::public_key public_key_type
chain::action create_action(const vector< permission_level > &authorization, const account_name &code, const action_name &act, const fc::variant &args)
vector< chain::permission_level > get_account_permissions(const vector< string > &permissions)
void add_standard_transaction_options(CLI::App *cmd, string default_permission="")
void send_actions(std::vector< chain::action > &&actions, packed_transaction::compression_type compression=packed_transaction::compression_type::none)
vector< string > tx_permission
fc::variant regproducer_variant(const account_name &producer, const public_key_type &key, const string &url, uint16_t location)