mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-05 09:35:49 +00:00
cli: fix skip-blocks-uploading
mode of upload-bin
command
If uploadBlocks succeeded uploadIndexFiles should work based on the currentBlockHeight. Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
This commit is contained in:
parent
58ed448f8d
commit
5f6284de05
1 changed files with 1 additions and 0 deletions
|
@ -147,6 +147,7 @@ func uploadBin(ctx *cli.Context) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return cli.Exit(fmt.Errorf("failed to upload blocks: %w", err), 1)
|
return cli.Exit(fmt.Errorf("failed to upload blocks: %w", err), 1)
|
||||||
}
|
}
|
||||||
|
oldestMissingBlockIndex = int(currentBlockHeight) + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
err = uploadIndexFiles(ctx, p, containerID, acc, signer, uint(oldestMissingBlockIndex), attr, homomorphicHashingDisabled, maxParallelSearches, maxRetries, debug)
|
err = uploadIndexFiles(ctx, p, containerID, acc, signer, uint(oldestMissingBlockIndex), attr, homomorphicHashingDisabled, maxParallelSearches, maxRetries, debug)
|
||||||
|
|
Loading…
Reference in a new issue