|
|
|
@ -365,6 +365,7 @@ class page
|
|
|
|
|
bool enable_mixins_details;
|
|
|
|
|
bool enable_tx_cache;
|
|
|
|
|
bool enable_block_cache;
|
|
|
|
|
bool enable_as_hex;
|
|
|
|
|
bool show_cache_times;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -415,6 +416,7 @@ public:
|
|
|
|
|
cryptonote::network_type _nettype,
|
|
|
|
|
bool _enable_pusher,
|
|
|
|
|
bool _enable_js,
|
|
|
|
|
bool _enable_as_hex,
|
|
|
|
|
bool _enable_key_image_checker,
|
|
|
|
|
bool _enable_output_key_checker,
|
|
|
|
|
bool _enable_autorefresh_option,
|
|
|
|
@ -434,6 +436,7 @@ public:
|
|
|
|
|
nettype {_nettype},
|
|
|
|
|
enable_pusher {_enable_pusher},
|
|
|
|
|
enable_js {_enable_js},
|
|
|
|
|
enable_as_hex {_enable_as_hex},
|
|
|
|
|
enable_key_image_checker {_enable_key_image_checker},
|
|
|
|
|
enable_output_key_checker {_enable_output_key_checker},
|
|
|
|
|
enable_autorefresh_option {_enable_autorefresh_option},
|
|
|
|
@ -1253,11 +1256,12 @@ public:
|
|
|
|
|
{"blk_timestamp_epoch" , blk.timestamp},
|
|
|
|
|
{"prev_hash" , prev_hash_str},
|
|
|
|
|
{"next_hash" , next_hash_str},
|
|
|
|
|
{"enable_as_hex" , enable_as_hex},
|
|
|
|
|
{"have_next_hash" , have_next_hash},
|
|
|
|
|
{"have_prev_hash" , have_prev_hash},
|
|
|
|
|
{"have_txs" , have_txs},
|
|
|
|
|
{"no_txs" , std::to_string(
|
|
|
|
|
blk.tx_hashes.size())},
|
|
|
|
|
blk.tx_hashes.size())},
|
|
|
|
|
{"blk_age" , age.first},
|
|
|
|
|
{"delta_time" , delta_time},
|
|
|
|
|
{"blk_nonce" , blk.nonce},
|
|
|
|
@ -1632,9 +1636,34 @@ public:
|
|
|
|
|
}
|
|
|
|
|
catch (std::exception const& e)
|
|
|
|
|
{
|
|
|
|
|
cerr << e.what() << endl;
|
|
|
|
|
cerr << e.what() << endl;
|
|
|
|
|
return string {"Failed to obtain hex of tx due to: "} + e.what();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string
|
|
|
|
|
show_block_hex(size_t block_height)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
// get transaction
|
|
|
|
|
block blk;
|
|
|
|
|
|
|
|
|
|
if (!mcore->get_block_by_height(block_height, blk))
|
|
|
|
|
{
|
|
|
|
|
cerr << "Cant get block in blockchain: " << block_height
|
|
|
|
|
<< ". \n Check mempool now\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
return epee::string_tools::buff_to_hex_nodelimer(
|
|
|
|
|
t_serializable_object_to_blob(blk));
|
|
|
|
|
}
|
|
|
|
|
catch (std::exception const& e)
|
|
|
|
|
{
|
|
|
|
|
cerr << e.what() << endl;
|
|
|
|
|
return string {"Failed to obtain hex of a block due to: "} + e.what();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string
|
|
|
|
@ -6063,6 +6092,7 @@ private:
|
|
|
|
|
context["inputs_xmr_sum"] = xmreg::xmr_amount_to_str(inputs_xmr_sum);
|
|
|
|
|
context["server_time"] = server_time_str;
|
|
|
|
|
context["enable_mixins_details"] = detailed_view;
|
|
|
|
|
context["enable_as_hex"] = enable_as_hex;
|
|
|
|
|
context["show_part_of_inputs"] = show_part_of_inputs;
|
|
|
|
|
context["max_no_of_inputs_to_show"] = max_no_of_inputs_to_show;
|
|
|
|
|
|
|
|
|
|