readme updated

This commit is contained in:
moneroexamples 2018-01-28 09:17:12 +08:00
parent 6c811626cb
commit fd1f66dfbe
2 changed files with 13 additions and 7 deletions

View file

@ -258,6 +258,15 @@ The values given, can be checked using Monero daemon's `print_coinbase_tx_sum`
For example, for the above example: `print_coinbase_tx_sum 0 1313449`.
To disable the monitor, simply restart the explorer without `--enable-emission-monitor` flag.
## Enable JavaScript for decoding proving transactions
By default, decoding and proving tx's outputs are done on the server side. To do this on the client side
(private view and tx keys are not send to the server) JavaScript-based decoding can be enabled:
```
xmrblocks --enable-js
```
## Enable SSL (https)

View file

@ -217,13 +217,10 @@
return;
}
// when using subaddress, there can be more than one tx_prv_key
var multiple_tx_prv_keys = parse_str_secret_key(tx_prv_key);
//console.log("multiple_tx_prv_keys: ", multiple_tx_prv_keys);
try {
// when using subaddress, there can be more than one tx_prv_key
var multiple_tx_prv_keys = parse_str_secret_key(tx_prv_key);
var address_decoded = decode_address(address);
decodeOutputs(tx_json, address_decoded.view, tx_prv_key,
address_decoded.spend, payment_id,
@ -244,7 +241,7 @@
var num_keys = Math.floor(key_str.length / 64);
if (num_keys * 64 != key_str.length)
throw "num_keys * 64 != key_str.length for " + num_keys + " and " + key_str;
throw "num_keys * 64 != key_str.length;
for (var i = 0; i < num_keys; i++)
{