From 15a6995cda3469c790ed1605a767c2ff889b6b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 22 Jul 2021 16:18:55 +0200 Subject: [PATCH] fix lint --- cmd/lotus-storage-miner/actor.go | 3 ++- documentation/en/cli-lotus-miner.md | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/cmd/lotus-storage-miner/actor.go b/cmd/lotus-storage-miner/actor.go index 29fd877a83f..8b03f236061 100644 --- a/cmd/lotus-storage-miner/actor.go +++ b/cmd/lotus-storage-miner/actor.go @@ -43,6 +43,7 @@ var actorCmd = &cli.Command{ actorControl, actorProposeChangeWorker, actorConfirmChangeWorker, + actorCompactAllocatedCmd, }, } @@ -1075,7 +1076,7 @@ var actorCompactAllocatedCmd = &cli.Command{ m := cctx.Uint64("mask-last-offset") if last <= m+1 { - return xerrors.Errorf("higest allocated sector lower than mask offset %d: %d", m+1, last) + return xerrors.Errorf("highest allocated sector lower than mask offset %d: %d", m+1, last) } // securty to not brick a miner if last > 1<<60 { diff --git a/documentation/en/cli-lotus-miner.md b/documentation/en/cli-lotus-miner.md index aa51ab23ef8..37384c34989 100644 --- a/documentation/en/cli-lotus-miner.md +++ b/documentation/en/cli-lotus-miner.md @@ -207,6 +207,7 @@ COMMANDS: control Manage control addresses propose-change-worker Propose a worker address change confirm-change-worker Confirm a worker address change + compact-allocated compact allocated sectors bitfield help, h Shows a list of commands or help for one command OPTIONS: @@ -361,6 +362,22 @@ OPTIONS: ``` +### lotus-miner actor compact-allocated +``` +NAME: + lotus-miner actor compact-allocated - compact allocated sectors bitfield + +USAGE: + lotus-miner actor compact-allocated [command options] [arguments...] + +OPTIONS: + --mask-last-offset value Mask sector IDs from 0 to 'higest_allocated - offset' (default: 0) + --mask-upto-n value Mask sector IDs from 0 to 'n' (default: 0) + --really-do-it Actually send transaction performing the action (default: false) + --help, -h show help (default: false) + +``` + ## lotus-miner info ``` NAME: