add ringct type to tx info

This commit is contained in:
moneroexamples 2017-01-15 10:33:33 +08:00
parent 2b687352e3
commit 2f5d118663
2 changed files with 3 additions and 1 deletions

View File

@ -3882,6 +3882,7 @@ private:
with_ring_signatures)}, with_ring_signatures)},
{"tx_json" , tx_json}, {"tx_json" , tx_json},
{"is_ringct" , (tx.version > 1)}, {"is_ringct" , (tx.version > 1)},
{"rct_type" , tx.rct_signatures.type},
{"has_error" , false}, {"has_error" , false},
{"error_msg" , string("")}, {"error_msg" , string("")},
{"have_raw_tx" , false}, {"have_raw_tx" , false},

View File

@ -44,9 +44,10 @@
<tr> <tr>
<td>Tx version: {{tx_version}}</td> <td>Tx version: {{tx_version}}</td>
<td>No of confirmations: {{confirmations}}</td> <td>No of confirmations: {{confirmations}}</td>
<td></td> <td>RingCT/type: {{#is_ringct}}yes/{{rct_type}}{{/is_ringct}}{{^is_ringct}}no{{/is_ringct}}</td>
</tr> </tr>
<tr> <tr>
<td colspan="3">Extra: {{extra}}</td> <td colspan="3">Extra: {{extra}}</td>
</tr> </tr>