template improvement and commenting json structs`

master
lalanza808 4 years ago
parent f3393824e4
commit 52b9caea5b

@ -176,5 +176,39 @@ pub struct Transactions {
pub receive_time: i64,
pub relayed: bool,
pub tx_blob: String,
pub tx_json: String,
pub weight: u32
}
// #[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
// pub struct TransactionJSON {
// pub version: u32,
// pub unlock_time: u64,
// pub vin: TransactionInputs,
// pub vout: TransactionOutputs,
// pub extra: String,
// pub signatures: Vec<String>
// }
//
// #[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
// pub struct TransactionInputs {
// pub pubkey: PreviousTransactionKey
// }
//
// #[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
// pub struct PreviousTransactionKey {
// pub amount: u32,
// pub key_offsets: Vec<u32>,
// pub k_image: String
// }
//
// #[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
// pub struct TransactionOutputs {
// pub amount: u32,
// pub target: OutputStealthAddress
// }
//
// #[derive(Serialize, Deserialize, Hash, Eq, PartialEq, Debug)]
// pub struct OutputStealthAddress {
// pub key: String
// }

@ -46,7 +46,7 @@
<div class="col-3 col-6-medium col-12-small">
<section class="box">
<header>
<h3>Transactions</h3>
<h3>Transaction Count</h3>
</header>
<p>{{ daemon_info.tx_count }}</p>
</section>
@ -54,9 +54,9 @@
<div class="col-3 col-6-medium col-12-small">
<section class="box">
<header>
<h3>Mempool Size</h3>
<h3>Database Size</h3>
</header>
<p>{{ daemon_info.tx_pool_size }}</p>
<p>{{ daemon_info.database_size / 1000000000 }} GB</p>
</section>
</div>
<div class="col-3 col-6-medium col-12-small">
@ -83,7 +83,7 @@
<header class="major">
<div class="tx-table">
<table>
<caption><h2>Transaction Pool</h2></caption>
<caption><h2>Transaction Pool ({{ daemon_info.tx_pool_size }})</h2></caption>
<tr>
<th>Hash</th>
<th>Amount</th>

Loading…
Cancel
Save