diff --git a/CMakeLists.txt b/CMakeLists.txt index 375842f..485660a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ endif() if (NOT MONERO_DIR) - set(MONERO_DIR ~/monero) + set(MONERO_DIR ~/wownero) endif() message(STATUS MONERO_DIR ": ${MONERO_DIR}") diff --git a/main.cpp b/main.cpp index 4729298..9766912 100644 --- a/main.cpp +++ b/main.cpp @@ -173,9 +173,9 @@ main(int ac, const char* av[]) string deamon_url {*deamon_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") + if (testnet && deamon_url == "http:://127.0.0.1:34568") + deamon_url = "http:://127.0.0.1:11181"; + if (stagenet && deamon_url == "http:://127.0.0.1:34568") deamon_url = "http:://127.0.0.1:38081"; uint64_t mempool_info_timeout {5000}; @@ -360,7 +360,7 @@ main(int ac, const char* av[]) || post_body.count("viewkey") == 0 || post_body.count("tx_hash") == 0) { - return string("xmr address, viewkey or tx hash not provided"); + return string("wow address, viewkey or tx hash not provided"); } string tx_hash = remove_bad_chars(post_body["tx_hash"]); @@ -402,7 +402,7 @@ main(int ac, const char* av[]) || post_body.count("txprvkey") == 0 || post_body.count("txhash") == 0) { - return string("xmr address, tx private key or " + return string("wow address, tx private key or " "tx hash not provided"); } diff --git a/src/CmdLineOptions.cpp b/src/CmdLineOptions.cpp index 3ff85c4..278c47f 100644 --- a/src/CmdLineOptions.cpp +++ b/src/CmdLineOptions.cpp @@ -18,7 +18,7 @@ namespace xmreg p.add("txhash", -1); options_description desc( - "xmrblocks, Onion Monero Blockchain Explorer"); + "xmrblocks, Wownero Blockchain Explorer"); desc.add_options() ("help,h", value()->default_value(false)->implicit_value(true), @@ -50,7 +50,7 @@ namespace xmreg ("enable-autorefresh-option", value()->default_value(false)->implicit_value(true), "enable users to have the index page on autorefresh") ("enable-emission-monitor", value()->default_value(false)->implicit_value(true), - "enable Monero total emission monitoring thread") + "enable Wownero total emission monitoring thread") ("port,p", value()->default_value("8081"), "default explorer port") ("bindaddr,x", value()->default_value("0.0.0.0"), @@ -68,13 +68,13 @@ namespace xmreg ("mempool-refresh-time", value()->default_value("5"), "time, in seconds, for each refresh of mempool state") ("bc-path,b", value(), - "path to lmdb folder of the blockchain, e.g., ~/.bitmonero/lmdb") + "path to lmdb folder of the blockchain, e.g., ~/.wownero/lmdb") ("ssl-crt-file", value(), "path to crt file for ssl (https) functionality") ("ssl-key-file", value(), "path to key file for ssl (https) functionality") - ("deamon-url,d", value()->default_value("http:://127.0.0.1:18081"), - "Monero deamon url"); + ("deamon-url,d", value()->default_value("http:://127.0.0.1:34568"), + "Wownero deamon url"); store(command_line_parser(acc, avv) diff --git a/src/CurrentBlockchainStatus.cpp b/src/CurrentBlockchainStatus.cpp index 040f01d..05c411a 100644 --- a/src/CurrentBlockchainStatus.cpp +++ b/src/CurrentBlockchainStatus.cpp @@ -297,13 +297,13 @@ CurrentBlockchainStatus::is_thread_running() return is_running; } -bf::path CurrentBlockchainStatus::blockchain_path {"/home/mwo/.bitmonero/lmdb"}; +bf::path CurrentBlockchainStatus::blockchain_path {"/home/mwo/.wownero/lmdb"}; cryptonote::network_type CurrentBlockchainStatus::nettype {cryptonote::network_type::MAINNET}; string CurrentBlockchainStatus::output_file {"emission_amount.txt"}; -string CurrentBlockchainStatus::deamon_url {"http:://127.0.0.1:18081"}; +string CurrentBlockchainStatus::deamon_url {"http:://127.0.0.1:34568"}; uint64_t CurrentBlockchainStatus::blockchain_chunk_size {10000}; diff --git a/src/MempoolStatus.cpp b/src/MempoolStatus.cpp index 4c18fca..f102a51 100644 --- a/src/MempoolStatus.cpp +++ b/src/MempoolStatus.cpp @@ -276,7 +276,7 @@ MempoolStatus::read_network_info() local_copy.target_height = rpc_network_info.target_height; local_copy.difficulty = rpc_network_info.difficulty; local_copy.target = rpc_network_info.target; - local_copy.hash_rate = (rpc_network_info.difficulty/rpc_network_info.target); + local_copy.hash_rate = (rpc_network_info.difficulty/300); local_copy.tx_count = rpc_network_info.tx_count; local_copy.tx_pool_size = rpc_network_info.tx_pool_size; local_copy.alt_blocks_count = rpc_network_info.alt_blocks_count; @@ -341,8 +341,8 @@ MempoolStatus::is_thread_running() return is_running; } -bf::path MempoolStatus::blockchain_path {"/home/mwo/.bitmonero/lmdb"}; -string MempoolStatus::deamon_url {"http:://127.0.0.1:18081"}; +bf::path MempoolStatus::blockchain_path {"/home/mwo/.wownero/lmdb"}; +string MempoolStatus::deamon_url {"http:://127.0.0.1:34568"}; cryptonote::network_type MempoolStatus::nettype {cryptonote::network_type::MAINNET}; atomic MempoolStatus::is_running {false}; boost::thread MempoolStatus::m_thread; diff --git a/src/page.h b/src/page.h index 3d27334..0a47c63 100644 --- a/src/page.h +++ b/src/page.h @@ -2069,7 +2069,7 @@ show_my_outputs(string tx_hash_str, {"blk_height" , tx_blk_height_str}, {"tx_size" , fmt::format("{:0.4f}", static_cast(txd.size) / 1024.0)}, - {"tx_fee" , xmreg::xmr_amount_to_str(txd.fee, "{:0.12f}", true)}, + {"tx_fee" , xmreg::xmr_amount_to_str(txd.fee, "{:0.11f}", true)}, {"blk_timestamp" , blk_timestamp}, {"delta_time" , age.first}, {"outputs_no" , static_cast(txd.output_pub_keys.size())}, @@ -2620,7 +2620,7 @@ show_my_outputs(string tx_hash_str, context["show_inputs"] = show_key_images; context["inputs_no"] = static_cast(inputs.size()); context["sum_mixin_xmr"] = xmreg::xmr_amount_to_str( - sum_mixin_xmr, "{:0.12f}", false); + sum_mixin_xmr, "{:0.11f}", false); uint64_t possible_spending {0}; @@ -2653,7 +2653,7 @@ show_my_outputs(string tx_hash_str, } context["possible_spending"] = xmreg::xmr_amount_to_str( - possible_spending, "{:0.12f}", false); + possible_spending, "{:0.11f}", false); add_css_style(context); @@ -6015,9 +6015,9 @@ construct_tx_context(transaction tx, uint16_t with_ring_signatures = 0) {"blk_height" , tx_blk_height_str}, {"tx_blk_height" , tx_blk_height}, {"tx_size" , fmt::format("{:0.4f}", tx_size)}, - {"tx_fee" , xmreg::xmr_amount_to_str(txd.fee, "{:0.12f}", false)}, + {"tx_fee" , xmreg::xmr_amount_to_str(txd.fee, "{:0.11f}", false)}, {"tx_fee_micro" , xmreg::xmr_amount_to_str(txd.fee*1e6, "{:0.4f}", false)}, - {"payed_for_kB" , fmt::format("{:0.12f}", payed_for_kB)}, + {"payed_for_kB" , fmt::format("{:0.11f}", payed_for_kB)}, {"tx_version" , static_cast(txd.version)}, {"blk_timestamp" , blk_timestamp}, {"blk_timestamp_uint" , blk.timestamp}, diff --git a/src/rpccalls.h b/src/rpccalls.h index 720936e..5906239 100644 --- a/src/rpccalls.h +++ b/src/rpccalls.h @@ -81,7 +81,7 @@ class rpccalls public: - rpccalls(string _deamon_url = "http:://127.0.0.1:18081", + rpccalls(string _deamon_url = "http:://127.0.0.1:34568", uint64_t _timeout = 200000); bool diff --git a/src/templates/checkrawoutputkeys.html b/src/templates/checkrawoutputkeys.html index 572bbdc..c12d66d 100644 --- a/src/templates/checkrawoutputkeys.html +++ b/src/templates/checkrawoutputkeys.html @@ -15,7 +15,7 @@

Output keys for address: {{address}}

Viewkey: {{viewkey}}

{{#has_total_xmr}} -

Total xmr: {{total_xmr}}

+

Total wow: {{total_xmr}}

{{/has_total_xmr}}
diff --git a/src/templates/footer.html b/src/templates/footer.html index 4e0cbe6..682d09a 100644 --- a/src/templates/footer.html +++ b/src/templates/footer.html @@ -2,7 +2,7 @@
source code | explorer version (api): {{git_branch_name}}-{{last_git_commit_date}}-{{last_git_commit_hash}} ({{api}}) - | monero version: {{monero_version_full}} + | wownero version: {{monero_version_full}}
diff --git a/src/templates/header.html b/src/templates/header.html index 7c53e54..f510d42 100644 --- a/src/templates/header.html +++ b/src/templates/header.html @@ -6,7 +6,7 @@ {{#refresh}} {{/refresh}} - Onion Monero Blockchain Explorer + Wownero Blockchain Explorer