readme updated

This commit is contained in:
moneroexamples 2018-01-19 11:58:27 +08:00
parent b1c12d88ce
commit 156229274f
3 changed files with 15 additions and 2 deletions

View file

@ -62,7 +62,8 @@ Alternative block explorers:
The key features of the Onion Monero Blockchain Explorer are:
- no javascript, no cookies, no web analytics trackers, no images,
- no cookies, no web analytics trackers, no images,
- by default no JavaScript, but can be enabled for client side decoding and proving transactions,
- open sourced,
- made fully in C++,
- showing encrypted payments ID,
@ -176,6 +177,8 @@ xmrblocks, Onion Monero Blockchain Explorer:
--show-cache-times [=arg(=1)] (=0) show times of getting data from cache
vs no cache
--enable-block-cache [=arg(=1)] (=0) enable caching of block details
--enable-js [=arg(=1)] (=0) enable checking outputs and proving txs
using JavaScript on client side
--enable-autorefresh-option [=arg(=1)] (=0)
enable users to have the index page on
autorefresh

View file

@ -404,6 +404,16 @@ namespace xmreg
template_file["config.js"] = xmreg::read(JS_CONFIG);
template_file["biginteger.js"] = xmreg::read(JS_BIGINT);
// need to set "testnet: false," flag to reflect
// if we are running testnet or mainnet explorer
if (testnet)
template_file["config.js"] = std::regex_replace(
template_file["config.js"],
std::regex("testnet: false"),
"testnet: true" );
js_html_files += "<script src=\"/js/jquery.min.js\"></script>";
js_html_files += "<script src=\"/js/crc32.js\"></script>";
js_html_files += "<script src=\"/js/biginteger.js\"></script>";

View file

@ -1,5 +1,5 @@
var config = {
testnet: false, //@todo need to make it automated
testnet: false, // this is adjusted page.h if needed. dont need to change manually
coinUnitPlaces: 12,
txMinConfirms: 10, // corresponds to CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE in Monero
txCoinbaseMinConfirms: 60, // corresponds to CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW in Monero