mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
Remove payment id to ascii conversion
https://github.com/moneroexamples/onion-monero-blockchain-explorer/issues/204
This commit is contained in:
parent
cd64eef13a
commit
b60a147b8b
2 changed files with 0 additions and 7 deletions
|
@ -330,8 +330,6 @@ struct tx_details
|
|||
crypto::hash payment_id = null_hash; // normal
|
||||
crypto::hash8 payment_id8 = null_hash8; // encrypted
|
||||
|
||||
string payment_id_as_ascii;
|
||||
|
||||
std::vector<std::vector<crypto::signature>> signatures;
|
||||
|
||||
// key images of inputs
|
||||
|
@ -6038,9 +6036,6 @@ construct_tx_context(transaction tx, uint16_t with_ring_signatures = 0)
|
|||
|
||||
string tx_json = obj_to_json_str(tx);
|
||||
|
||||
// use this regex to remove all non friendly characters in payment_id_as_ascii string
|
||||
static std::regex e {"[^a-zA-Z0-9 ./\\\\!]"};
|
||||
|
||||
double tx_size = static_cast<double>(txd.size) / 1024.0;
|
||||
|
||||
double payed_for_kB = XMR_AMOUNT(txd.fee) / tx_size;
|
||||
|
@ -6069,7 +6064,6 @@ construct_tx_context(transaction tx, uint16_t with_ring_signatures = 0)
|
|||
{"has_payment_id8" , txd.payment_id8 != null_hash8},
|
||||
{"confirmations" , txd.no_confirmations},
|
||||
{"payment_id" , pid_str},
|
||||
{"payment_id_as_ascii" , remove_bad_chars(txd.payment_id_as_ascii)},
|
||||
{"payment_id8" , pid8_str},
|
||||
{"extra" , txd.get_extra_str()},
|
||||
{"with_ring_signatures" , static_cast<bool>(
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
{{#has_payment_id}}
|
||||
<H5 style="margin:5px">Payment id: <span id="payment_id">{{payment_id}}</span></H5>
|
||||
<H5 style="margin:5px">Payment id as ascii: {{payment_id_as_ascii}}</H5>
|
||||
{{/has_payment_id}}
|
||||
|
||||
{{#has_payment_id8}}
|
||||
|
|
Loading…
Reference in a new issue