mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
my_outputs.html modified
This commit is contained in:
parent
88e753bce8
commit
7a3046c200
2 changed files with 11 additions and 12 deletions
17
src/page.h
17
src/page.h
|
@ -1387,7 +1387,7 @@ public:
|
|||
|
||||
string out_pub_key_str = pod_to_hex(output_data.pubkey);
|
||||
|
||||
cout << "out_pub_key_str: " << out_pub_key_str << endl;
|
||||
//cout << "out_pub_key_str: " << out_pub_key_str << endl;
|
||||
|
||||
// this will be txs where the outputs come from
|
||||
vector<string> found_tx_hashes;
|
||||
|
@ -1401,7 +1401,7 @@ public:
|
|||
mixins.push_back(mstch::map{
|
||||
{"mixin_pub_key" , out_pub_key_str},
|
||||
{"mixin_outputs" , mstch::array{}},
|
||||
{"has_mixin_outputs", false}
|
||||
{"has_mixin_outputs" , false}
|
||||
});
|
||||
|
||||
mstch::array& mixin_outputs = boost::get<mstch::array>(
|
||||
|
@ -1431,10 +1431,11 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
|
||||
public_key mixin_tx_pub_key
|
||||
= xmreg::get_tx_pub_key_from_received_outs(mixin_tx);
|
||||
|
||||
string mixin_tx_pub_key_str = pod_to_hex(mixin_tx_pub_key);
|
||||
|
||||
// public transaction key is combined with our viewkey
|
||||
// to create, so called, derived key.
|
||||
key_derivation derivation;
|
||||
|
@ -1455,6 +1456,7 @@ public:
|
|||
|
||||
mixin_outputs.push_back(mstch::map{
|
||||
{"mix_tx_hash" , tx_hash_str},
|
||||
{"mix_tx_pub_key" , mixin_tx_pub_key_str},
|
||||
{"found_outputs" , mstch::array{}},
|
||||
{"has_found_outputs", false}
|
||||
});
|
||||
|
@ -1475,10 +1477,7 @@ public:
|
|||
uint64_t amount = std::get<1>(mix_out);
|
||||
uint64_t output_idx_in_tx = std::get<2>(mix_out);
|
||||
|
||||
cout << " - " << pod_to_hex(txout_k.key) << endl;
|
||||
|
||||
// //@todo fix this for loop
|
||||
// continue;
|
||||
//cout << " - " << pod_to_hex(txout_k.key) << endl;
|
||||
|
||||
// // analyze only those output keys
|
||||
// // that were used in mixins
|
||||
|
@ -1547,7 +1546,7 @@ public:
|
|||
// << endl;
|
||||
|
||||
found_something = true;
|
||||
|
||||
show_key_images = true;
|
||||
}
|
||||
|
||||
} // for (const pair<txout_to_key, uint64_t>& mix_out: txd.output_pub_keys)
|
||||
|
@ -1560,7 +1559,7 @@ public:
|
|||
|
||||
} // for (const cryptonote::output_data_t& output_data: mixin_outputs)
|
||||
|
||||
show_key_images = true;
|
||||
|
||||
|
||||
} // for (const txin_to_key& in_key: input_key_imgs)
|
||||
|
||||
|
|
|
@ -68,8 +68,6 @@
|
|||
|
||||
{{#show_inputs}}
|
||||
|
||||
<hr>
|
||||
|
||||
<h3>Inputs</h3>
|
||||
<div class="center">
|
||||
{{#inputs}}
|
||||
|
@ -81,7 +79,9 @@
|
|||
<table class="center">
|
||||
<tr>
|
||||
<td style="text-align: center;">
|
||||
Mixin {{mixin_pub_key}} <br/> might use our outputs from tx: <a href="/tx/{{mix_tx_hash}}">{{mix_tx_hash}}</a>
|
||||
Mixin {{mixin_pub_key}} might use our outputs
|
||||
<br/>
|
||||
from tx of public key: <a href="/tx/{{mix_tx_hash}}">{{mix_tx_pub_key}}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{{#has_found_outputs}}
|
||||
|
|
Loading…
Reference in a new issue