mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
dont decode ringct amounts for ringct coinbase txs
This commit is contained in:
parent
7b3c840231
commit
d8c719dc07
2 changed files with 38 additions and 36 deletions
20
src/page.h
20
src/page.h
|
@ -1283,6 +1283,11 @@ public:
|
|||
// if mine output has RingCT, i.e., tx version is 2
|
||||
if (mine_output && tx.version == 2)
|
||||
{
|
||||
// cointbase txs have amounts in plain sight.
|
||||
// so use amount from ringct, only for non-coinbase txs
|
||||
if (!is_coinbase(tx))
|
||||
{
|
||||
|
||||
// initialize with regular amount
|
||||
uint64_t rct_amount = money_transfered[output_idx];
|
||||
|
||||
|
@ -1300,10 +1305,6 @@ public:
|
|||
cerr << "\nshow_my_outputs: Cant decode ringCT! " << endl;
|
||||
}
|
||||
|
||||
// cointbase txs have amounts in plain sight.
|
||||
// so use amount from ringct, only for non-coinbase txs
|
||||
if (!is_coinbase(tx))
|
||||
{
|
||||
outp.second = rct_amount;
|
||||
money_transfered[output_idx] = rct_amount;
|
||||
}
|
||||
|
@ -1513,6 +1514,10 @@ public:
|
|||
|
||||
|
||||
if (mine_output && mixin_tx.version == 2)
|
||||
{
|
||||
// cointbase txs have amounts in plain sight.
|
||||
// so use amount from ringct, only for non-coinbase txs
|
||||
if (!is_coinbase(mixin_tx))
|
||||
{
|
||||
// initialize with regular amount
|
||||
uint64_t rct_amount = amount;
|
||||
|
@ -1531,12 +1536,9 @@ public:
|
|||
cerr << "show_my_outputs: key images: Cant decode ringCT!" << endl;
|
||||
}
|
||||
|
||||
// cointbase txs have amounts in plain sight.
|
||||
// so use amount from ringct, only for non-coinbase txs
|
||||
if (!is_coinbase(mixin_tx))
|
||||
{
|
||||
amount = rct_amount;
|
||||
}
|
||||
|
||||
} // if (mine_output && mixin_tx.version == 2)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
</div>
|
||||
|
||||
{{#show_inputs}}
|
||||
|
||||
<br/>
|
||||
<h3>Inputs ({{inputs_no}})</h3>
|
||||
<div class="center">
|
||||
{{#inputs}}
|
||||
|
|
Loading…
Reference in a new issue