With Kura Inspector you can inspect blocks in disk storage regardless of the operating status of Iroha and print out block contents in a human-readabe format.
Run Kura Inspector:
kagami kura [OPTIONS] <PATH_TO_BLOCK_STORE> <SUBCOMMAND>
Option | Description | Default value | Type |
---|---|---|---|
-f , --from |
The starting block height of the range for inspection | Current block height | Positive integer |
Command | Description |
---|---|
print |
Print the contents of a specified number of blocks |
help |
Print the help message for the tool or a subcommand |
An error in Kura Inspector occurs if one the following happens:
kura
fails to configurekura::BlockStore
kura
fails to run theprint
subcommand
The print
command reads data from the block_store
and prints the results to the specified output
.
Option | Description | Default value | Type |
---|---|---|---|
-n , --length |
The number of blocks to print. The excess is truncated. | 1 | Positive integer |
-o , --output |
Where to write the results of the inspection: valid data and errors. | /dev/stdout |
file |
An error in print
occurs if one the following happens:
kura
fails to readblock_store
kura
fails to print theoutput
kura
tries to print the latest block and there is none
-
Print the contents of the latest block:
kagami kura <path> print
-
Print all blocks with a height between 100 and 104:
kagami kura -f 100 <path> print -n 5
-
Print errors for all blocks with a height between 100 and 104:
kagami kura -f 100 <path> print -n 5 >/dev/null