Skip to content

Commit 70b0961

Browse files
committed
Spotless apply
Signed-off-by: Jasper Potts <[email protected]>
1 parent 76f8a1b commit 70b0961

File tree

2 files changed

+27
-30
lines changed

2 files changed

+27
-30
lines changed

tools-and-tests/tools/README.md

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ Additional documentation for specific techical topics can be found in the `docs/
6464
- [Address Book Updating](docs/address-book-updating.md)
6565
- [Record Files Format Spec](docs/record-file-format.md)
6666

67-
68-
6967
---
7068

7169
## Docker / Compose
@@ -141,16 +139,16 @@ services:
141139
* [Requirements](#requirements)
142140
* [Install & Build](#install--build)
143141
* [How to Run](#how-to-run)
144-
* [Global help & version](#global-help--version)
145-
* [Subcommands](#subcommands)
142+
* [Global help & version](#global-help--version)
143+
* [Subcommands](#subcommands)
146144
* [Common Workflows & Examples](#common-workflows--examples)
147-
* [1) Convert blocks → JSON](#1-convert-blocks--json)
148-
* [2) Inspect block files](#2-inspect-block-files)
149-
* [3) Convert mirror **record** streams → **block** streams](#3-convert-mirror-record-streams--block-streams)
150-
* [4) Mirror‑node CSV → block times](#4-mirror-node-csv--block-times)
151-
* [5) Validate block times](#5-validate-block-times)
152-
* [6) Add newer block times from GCP](#6-add-newer-block-times-from-gcp)
153-
* [7) Network capacity tests (gRPC, HTTP/2)](#7-network-capacity-tests-grpc-http2)
145+
* [1) Convert blocks → JSON](#1-convert-blocks--json)
146+
* [2) Inspect block files](#2-inspect-block-files)
147+
* [3) Convert mirror **record** streams → **block** streams](#3-convert-mirror-record-streams--block-streams)
148+
* [4) Mirror‑node CSV → block times](#4-mirror-node-csv--block-times)
149+
* [5) Validate block times](#5-validate-block-times)
150+
* [6) Add newer block times from GCP](#6-add-newer-block-times-from-gcp)
151+
* [7) Network capacity tests (gRPC, HTTP/2)](#7-network-capacity-tests-grpc-http2)
154152
* [Docker / Compose](#docker--compose)
155153
* [Troubleshooting](#troubleshooting)
156154
* [Development](#development)
@@ -181,9 +179,9 @@ services:
181179

182180
* Java JDK 21
183181
* For some subcommands you may need access to
184-
* local block/record files,
185-
* a Google Cloud bucket (for `fetchRecordsCsv`/`addNewerBlockTimes`),
186-
* or config JSON files (for `networkCapacity`).
182+
* local block/record files,
183+
* a Google Cloud bucket (for `fetchRecordsCsv`/`addNewerBlockTimes`),
184+
* or config JSON files (for `networkCapacity`).
187185

188186
---
189187

@@ -233,21 +231,21 @@ subcommands -V
233231
Below are quick synopses. Use `-h` on each for authoritative flags.
234232

235233
* **json** – Convert binary block stream → JSON
236-
* *Synopsis:* `json -i <input> -o <output>`
234+
* *Synopsis:* `json -i <input> -o <output>`
237235
* **info** – Print block file info/metadata
238-
* *Synopsis:* `info -i <block-file-or-dir>`
236+
* *Synopsis:* `info -i <block-file-or-dir>`
239237
* **record2block** – Convert mirror record streams → block streams
240-
* *Synopsis:* `record2block -i <records-dir> -o <blocks-dir> [options]`
238+
* *Synopsis:* `record2block -i <records-dir> -o <blocks-dir> [options]`
241239
* **fetchRecordsCsv** – Download mirror‑node records CSV from GCP
242-
* *Synopsis:* `fetchRecordsCsv --bucket <name> --prefix <path> -o <csv-dir> [options]`
240+
* *Synopsis:* `fetchRecordsCsv --bucket <name> --prefix <path> -o <csv-dir> [options]`
243241
* **extractBlockTimes** – Extract block times from mirror CSV
244-
* *Synopsis:* `extractBlockTimes -i <csv-file-or-dir> -o <block-times.csv>`
242+
* *Synopsis:* `extractBlockTimes -i <csv-file-or-dir> -o <block-times.csv>`
245243
* **validateBlockTimes** – Validate a block‑times file
246-
* *Synopsis:* `validateBlockTimes -i <block-times.csv>`
244+
* *Synopsis:* `validateBlockTimes -i <block-times.csv>`
247245
* **addNewerBlockTimes** – Augment block‑times with newer data (GCP)
248-
* *Synopsis:* `addNewerBlockTimes --bucket <name> --prefix <path> -i <existing.csv> -o <updated.csv>`
246+
* *Synopsis:* `addNewerBlockTimes --bucket <name> --prefix <path> -i <existing.csv> -o <updated.csv>`
249247
* **networkCapacity** – Throughput testing (server/client)
250-
* *Synopsis:* `networkCapacity -m <server|client> -c <config.json> [other options]`
248+
* *Synopsis:* `networkCapacity -m <server|client> -c <config.json> [other options]`
251249

252250
---
253251

@@ -395,17 +393,17 @@ services:
395393
## Troubleshooting
396394

397395
* **“Missing required subcommand”**
398-
* You invoked the binary without a subcommand. Run `subcommands -h` to see options, or include one (e.g., `json`, `info`, `networkCapacity`).
396+
* You invoked the binary without a subcommand. Run `subcommands -h` to see options, or include one (e.g., `json`, `info`, `networkCapacity`).
399397
* **`NoSuchFileException` for JSON configs or inputs**
400-
* The path you passed to `-c`/`-i` does not exist inside the **process/container**. Double‑check the working directory or your Docker volume mounts.
398+
* The path you passed to `-c`/`-i` does not exist inside the **process/container**. Double‑check the working directory or your Docker volume mounts.
401399
* **Recording folder does not exist**
402-
* Ensure `-f` points to a real directory, and the mount path inside the container matches your host path.
400+
* Ensure `-f` points to a real directory, and the mount path inside the container matches your host path.
403401
* **Compose volume error: “empty section between colons”**
404-
* The `SRC:DEST[:MODE]` string has an empty part (e.g., `a::b`). Fix the mapping.
402+
* The `SRC:DEST[:MODE]` string has an empty part (e.g., `a::b`). Fix the mapping.
405403
* **Passing args via Gradle**
406-
* Use `--args="..."` and quote the entire argument string.
404+
* Use `--args="..."` and quote the entire argument string.
407405
* **Flow control / HTTP2 resets** (for `networkCapacity`)
408-
* Start with sane defaults, then adjust max message sizes, window sizes, and timeouts using the tool’s flags or config file. Use `-h` to discover the exact options.
406+
* Start with sane defaults, then adjust max message sizes, window sizes, and timeouts using the tool’s flags or config file. Use `-h` to discover the exact options.
409407

410408
---
411409

tools-and-tests/tools/src/main/java/org/hiero/block/tools/blocks/ToWrappedBlocksCommand.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ public void run() {
127127
unzipped ? BlockArchiveType.INDIVIDUAL_FILES : BlockArchiveType.UNCOMPRESSED_ZIP;
128128
// check we have a blockTimesFile
129129
if (!Files.exists(blockTimesFile) || !Files.exists(dayBlocksFile)) {
130-
System.err.println(
131-
"""
130+
System.err.println("""
132131
Missing the data/block_times.bin or day_blocks.json data from mirror node.
133132
Please use these commands to download:
134133
mirror fetchRecordsCsv

0 commit comments

Comments
 (0)