From a3e57af718fb79465ecc94f61f09536334bce9b0 Mon Sep 17 00:00:00 2001 From: Seth For Privacy Date: Fri, 19 Nov 2021 20:22:07 +0000 Subject: [PATCH] Correct misspelling of "daemon" for "daemon-url" Just a simple fix, as "daemon" was misspelled "deamon", even in the flag/arg. --- main.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/main.cpp b/main.cpp index 016363f..2d823d4 100644 --- a/main.cpp +++ b/main.cpp @@ -56,7 +56,7 @@ main(int ac, const char* av[]) auto port_opt = opts.get_option("port"); auto bindaddr_opt = opts.get_option("bindaddr"); auto bc_path_opt = opts.get_option("bc-path"); - auto deamon_url_opt = opts.get_option("deamon-url"); + auto daemon_url_opt = opts.get_option("daemon-url"); auto ssl_crt_file_opt = opts.get_option("ssl-crt-file"); auto ssl_key_file_opt = opts.get_option("ssl-key-file"); auto no_blocks_on_index_opt = opts.get_option("no-blocks-on-index"); @@ -205,12 +205,12 @@ main(int ac, const char* av[]) return EXIT_FAILURE; } - string deamon_url {*deamon_url_opt}; + string daemon_url {*daemon_url_opt}; - if (testnet && deamon_url == "http:://127.0.0.1:18081") - deamon_url = "http:://127.0.0.1:28081"; - if (stagenet && deamon_url == "http:://127.0.0.1:18081") - deamon_url = "http:://127.0.0.1:38081"; + if (testnet && daemon_url == "http:://127.0.0.1:18081") + daemon_url = "http:://127.0.0.1:28081"; + if (stagenet && daemon_url == "http:://127.0.0.1:18081") + daemon_url = "http:://127.0.0.1:38081"; uint64_t mempool_info_timeout {5000}; @@ -247,8 +247,8 @@ main(int ac, const char* av[]) = blockchain_path; xmreg::CurrentBlockchainStatus::nettype = nettype; - xmreg::CurrentBlockchainStatus::deamon_url - = deamon_url; + xmreg::CurrentBlockchainStatus::daemon_url + = daemon_url; xmreg::CurrentBlockchainStatus::set_blockchain_variables( &mcore, core_storage); @@ -264,8 +264,8 @@ main(int ac, const char* av[]) = blockchain_path; xmreg::MempoolStatus::nettype = nettype; - xmreg::MempoolStatus::deamon_url - = deamon_url; + xmreg::MempoolStatus::daemon_url + = daemon_url; xmreg::MempoolStatus::login = daemon_rpc_login; xmreg::MempoolStatus::set_blockchain_variables( @@ -299,7 +299,7 @@ main(int ac, const char* av[]) // contains logic for the website xmreg::page xmrblocks(&mcore, core_storage, - deamon_url, + daemon_url, nettype, enable_pusher, enable_randomx,