feat: Display block size (in # BFieldElements)

This commit is contained in:
aszepieniec 2025-03-24 13:04:30 +01:00 committed by GitHub
commit df61019183
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 209 additions and 392 deletions

583
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -13,8 +13,8 @@ tokio = { version = "1.37.0", features = ["full", "tracing"] }
tracing = "0.1"
tracing-subscriber = "0.3"
# 89f5a1c2bb5f670071b71f2fef237c820e901f84 = 2025-01-22, almost to betanet-v2
neptune-cash = {git = "https://github.com/Neptune-Crypto/neptune-core.git", rev = "89f5a1c2bb5f670071b71f2fef237c820e901f84"}
# 9d4901028784d5c083fb72029c52da4953b0f0c3 is tip of master on 2025-03-24
neptune-cash = {git = "https://github.com/Neptune-Crypto/neptune-core.git", rev = "9d4901028784d5c083fb72029c52da4953b0f0c3"}
tarpc = { version = "^0.34", features = [
"tokio1",
"serde-transport",
@ -39,9 +39,3 @@ derive_more = { version = "1.0.0", features = ["display"] }
# not a direct dep. workaround for weird "could not resolve" cargo error
indexmap = "2.7.0"
[patch.crates-io]
# 694f27daf78aade0ed0dc07e3babaab036cd5572 is tip of branch: master as of 2024-04-30
#tasm-lib = { git = "https://github.com/TritonVM/tasm-lib.git", rev = "694f27daf78aade0ed0dc07e3babaab036cd5572" }
# 0d2cb98c0495d30e53d28e82a35de44dc655c3ea = tip of branch: master, on 2024-04-24
#twenty-first = { git = "https://github.com/Neptune-Crypto/twenty-first.git", rev = "0d2cb98c0495d30e53d28e82a35de44dc655c3ea" }

View File

@ -31,6 +31,14 @@
<td>Created</td>
<td>{{self.block_info.timestamp.standard_format()}}</td>
</tr>
<tr>
<td>Size
<span class="tooltip">
<span class="tooltiptext">Unit: number of BFieldElements. One BFieldElement consists of 8 bytes.</span>
</span>
</td>
<td>{{self.block_info.size}}</td>
</tr>
<tr>
<td>Inputs</td>
<td>{{self.block_info.num_inputs}}<br /></td>