From c23bd2cf43ac45d96736f95146cb98bc7ffa2592 Mon Sep 17 00:00:00 2001 From: Matt Whitehead Date: Fri, 28 Jul 2023 03:39:22 +0100 Subject: [PATCH] Add note to explain that more than one `--from` argument can be passed 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 * Clarify the order that files are read in Signed-off-by: Matthew Whitehead * Add another --from argument to the import example Signed-off-by: Matthew Whitehead * 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 Signed-off-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com> Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com> --- docs/public-networks/reference/cli/subcommands.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/public-networks/reference/cli/subcommands.md b/docs/public-networks/reference/cli/subcommands.md index 1a9798376bc..2edad520f93 100644 --- a/docs/public-networks/reference/cli/subcommands.md +++ b/docs/public-networks/reference/cli/subcommands.md @@ -46,7 +46,7 @@ besu blocks import [--skip-pow-validation-enabled] [--start-block=] [--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 ``` @@ -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.