Skip to content

Commit

Permalink
Add note to explain that more than one --from argument can be passe…
Browse files Browse the repository at this point in the history
…d to the `import` sub command (#1365)

* Add note to explain that more than one --from argument can be passed in to the import command

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Clarify the order that files are read in

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Add another --from argument to the import example

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>

* Update docs/public-networks/reference/cli/subcommands.md

Signed-off-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com>

---------

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
Signed-off-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com>
Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com>
  • Loading branch information
matthew1001 and alexandratran committed Jul 28, 2023
1 parent bdb9217 commit c23bd2c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/public-networks/reference/cli/subcommands.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ besu blocks import [--skip-pow-validation-enabled] [--start-block=<LONG>] [--end
# Example

```bash
besu blocks import --skip-pow-validation-enabled --start-block=100 --end-block=300 --from=/home/me/me_project/mainnet.blocks
besu blocks import --skip-pow-validation-enabled --start-block=100 --end-block=300 --from=/home/me/me_project/mainnet-export1.blocks --from=/home/me/me_project/mainnet-export2.blocks
```

<!--/tabs-->
Expand All @@ -55,7 +55,9 @@ Imports a block or range of blocks from the specified file into the blockchain d

You can specify the starting index of the block range to import with `--start-block`. If omitted, the default start block is 0 (the beginning of the chain).

You can specify the ending index (exclusive) of the block range to import with `--end-block`. If omitted, all blocks after the start block will be imported.
You can specify the ending index (exclusive) of the block range to import with `--end-block`. If omitted, all blocks after the start block are imported.

You can specify multiple `--from` arguments. This can be useful when blocks have been exported over time to multiple files. If multiple files are provided they are read in the order specified in the command.

Including `--skip-pow-validation-enabled` skips validation of the `mixHash` when importing blocks.

Expand Down

0 comments on commit c23bd2c

Please sign in to comment.