2024-05-10 14:20:43 -07:00
|
|
|
<!doctype html>
|
2024-05-09 08:56:59 -07:00
|
|
|
<html>
|
|
|
|
|
|
|
|
|
|
<head>
|
2024-05-15 13:31:16 -07:00
|
|
|
<title>{{self.header.state.config.site_name}}: Block Height {{self.block_info.height}}</title>
|
2024-05-15 13:13:44 -07:00
|
|
|
{{html_escaper::Trusted(include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/templates/web/html/components/head.html")))}}
|
2024-05-09 08:56:59 -07:00
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
{{Trusted(self.header.to_string())}}
|
|
|
|
|
|
2024-05-10 14:20:43 -07:00
|
|
|
<main class="container">
|
|
|
|
|
|
|
|
|
|
<article>
|
2024-05-09 08:56:59 -07:00
|
|
|
<h2>Block height: {{self.block_info.height}}</h2>
|
|
|
|
|
|
|
|
|
|
<!-- special_block_notice -->
|
|
|
|
|
%% if self.block_info.is_genesis {
|
2024-05-15 13:31:16 -07:00
|
|
|
<p>This is the genesis block</p>
|
2024-05-09 08:56:59 -07:00
|
|
|
%% }
|
|
|
|
|
%% if self.block_info.is_tip {
|
2024-05-15 13:31:16 -07:00
|
|
|
<p>This is the latest block (tip)</p>
|
2024-05-09 08:56:59 -07:00
|
|
|
%% }
|
|
|
|
|
|
2024-05-10 14:20:43 -07:00
|
|
|
<table class="striped">
|
2024-05-09 08:56:59 -07:00
|
|
|
<tr>
|
|
|
|
|
<td>Digest</td>
|
2024-05-14 11:54:42 -07:00
|
|
|
<td class="mono">{{self.block_info.digest.to_hex()}}</td>
|
2024-05-09 08:56:59 -07:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Created</td>
|
|
|
|
|
<td>{{self.block_info.timestamp.standard_format()}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Inputs</td>
|
|
|
|
|
<td>{{self.block_info.num_inputs}}<br /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Outputs</td>
|
|
|
|
|
<td>{{self.block_info.num_outputs}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Difficulty</td>
|
|
|
|
|
<td>{{self.block_info.difficulty}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Mining Reward</td>
|
|
|
|
|
<td>{{self.block_info.mining_reward}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Fee</td>
|
|
|
|
|
<td>{{self.block_info.fee}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
2024-05-10 14:20:43 -07:00
|
|
|
</article>
|
|
|
|
|
|
|
|
|
|
<article>
|
|
|
|
|
|
2024-05-09 08:56:59 -07:00
|
|
|
<p>
|
|
|
|
|
<a href="/">Home</a>
|
|
|
|
|
| <a href='/block/genesis'>Genesis</a>
|
|
|
|
|
| <a href='/block/tip'>Tip</a>
|
|
|
|
|
%% if self.block_info.is_genesis {
|
|
|
|
|
| Previous Block
|
|
|
|
|
%% } else {
|
|
|
|
|
| <a href='/block/height/{{self.block_info.height.previous()}}'>Previous Block</a>
|
|
|
|
|
%% }
|
|
|
|
|
|
|
|
|
|
%% if self.block_info.is_tip {
|
|
|
|
|
| Next Block
|
|
|
|
|
%% } else {
|
|
|
|
|
| <a href='/block/height/{{self.block_info.height.next()}}'>Next Block</a>
|
|
|
|
|
%% }
|
|
|
|
|
</p>
|
|
|
|
|
|
2024-05-10 14:20:43 -07:00
|
|
|
</article>
|
|
|
|
|
</main>
|
2024-05-09 08:56:59 -07:00
|
|
|
</body>
|
2024-11-23 00:47:36 +00:00
|
|
|
</html>
|