75{
76 try {
83 .default_unix_socket_path = kiod::config::key_store_executable_name + ".sock",
84 .default_http_port = 0
85 });
87 if(!
app().initialize<wallet_plugin, wallet_api_plugin, http_plugin>(argc,
argv)) {
89 if (opts.count("help") || opts.count("version") || opts.count("full-version") ||
90 opts.count("print-default-config")) {
91 return 0;
92 }
93 }
101 } catch (const boost::exception& e) {
102 elog(
"${e}", (
"e",boost::diagnostic_information(e)));
103 } catch (const std::exception& e) {
104 elog(
"${e}", (
"e",e.what()));
105 } catch (...) {
106 elog(
"unknown exception");
107 }
108 return 0;
109}
const bpo::variables_map & get_options() const
void set_version_string(std::string v)
User provided version string for version_string() which overrides git describe value.
abstract_plugin & get_plugin(const string &name) const
void set_default_config_dir(const bfs::path &config_dir="etc")
Set default config directory.
void set_full_version_string(std::string v)
User provided full version string for full_version_string()
void set_default_data_dir(const bfs::path &data_dir="data-dir")
Set default data directory.
An order-preserving dictionary of variants.
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
void add_handler(const string &url, const url_handler &, int priority=appbase::priority::medium_low)
static void set_defaults(const http_plugin_defaults config)
const std::string & version_client()
< Grab the basic version information of the client; example: v1.8.0-rc1
const std::string & version_full()
std::function< void(int, fc::variant)> url_response_callback
A callback function provided to a URL handler to allow it to specify the HTTP response code and body.
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
void initialize_logging()
bfs::path determine_home_directory()