|
|
|
@ -3219,7 +3219,7 @@ namespace xmreg
|
|
|
|
|
|
|
|
|
|
// if the output is RingCT, i.e., tx version is 2
|
|
|
|
|
// need to decode its amount
|
|
|
|
|
if (td.m_tx.version == 2)
|
|
|
|
|
if (td.is_rct())
|
|
|
|
|
{
|
|
|
|
|
// get tx associated with the given output
|
|
|
|
|
transaction tx;
|
|
|
|
@ -3236,6 +3236,11 @@ namespace xmreg
|
|
|
|
|
|
|
|
|
|
public_key tx_pub_key = xmreg::get_tx_pub_key_from_received_outs(tx);
|
|
|
|
|
|
|
|
|
|
// cointbase txs have amounts in plain sight.
|
|
|
|
|
// so use amount from ringct, only for non-coinbase txs
|
|
|
|
|
if (!is_coinbase(tx))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
bool r = decode_ringct(tx.rct_signatures,
|
|
|
|
|
tx_pub_key,
|
|
|
|
|
prv_view_key,
|
|
|
|
@ -3254,7 +3259,10 @@ namespace xmreg
|
|
|
|
|
|
|
|
|
|
return mstch::render(full_page, context);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // if (!is_coinbase(tx))
|
|
|
|
|
|
|
|
|
|
} // if (td.is_rct())
|
|
|
|
|
|
|
|
|
|
uint64_t blk_timestamp = core_storage
|
|
|
|
|
->get_db().get_block_timestamp(td.m_block_height);
|
|
|
|
|