From 6a93f707281f78e8a5234ec4c3a802bae1c609a1 Mon Sep 17 00:00:00 2001 From: Ekaterina Pavlova Date: Wed, 30 Oct 2024 12:08:40 +0300 Subject: [PATCH] cli: add flag for skipping block uploading in `upload-bin` Signed-off-by: Ekaterina Pavlova --- cli/util/convert.go | 6 +- cli/util/uploader.go | 173 ++++++++++++++++++++----------------- docs/neofs-blockstorage.md | 3 +- 3 files changed, 100 insertions(+), 82 deletions(-) diff --git a/cli/util/convert.go b/cli/util/convert.go index dc8be1657..586513305 100644 --- a/cli/util/convert.go +++ b/cli/util/convert.go @@ -86,6 +86,10 @@ func NewCommands() []*cli.Command { Usage: "Number of concurrent searches for blocks", Value: 20, }, + &cli.BoolFlag{ + Name: "skip-blocks-uploading", + Usage: "Skip blocks uploading and upload only index files", + }, }, options.RPC...) uploadBinFlags = append(uploadBinFlags, options.Wallet...) return []*cli.Command{ @@ -168,7 +172,7 @@ func NewCommands() []*cli.Command { { Name: "upload-bin", Usage: "Fetch blocks from RPC node and upload them to the NeoFS container", - UsageText: "neo-go util upload-bin --fs-rpc-endpoint [,[...]] --container --block-attribute block --index-attribute index --rpc-endpoint [--timeout