From afa9032833b2a76c9be665af21c7a656865c20e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Wed, 10 Apr 2024 23:59:23 +0200 Subject: [PATCH] fix: spcli: add reference to the terminate command (#11851) * fix: spcli: add reference to the terminate command * make gen --- cmd/sptool/sector.go | 2 +- documentation/en/cli-sptool.md | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/cmd/sptool/sector.go b/cmd/sptool/sector.go index b8e003c99..8f341b5cc 100644 --- a/cmd/sptool/sector.go +++ b/cmd/sptool/sector.go @@ -36,7 +36,7 @@ var sectorsCmd = &cli.Command{ spcli.SectorsCheckExpireCmd(SPTActorGetter), sectorsExpiredCmd, // in-house b/c chain-only is so different spcli.SectorsExtendCmd(SPTActorGetter), - //spcli.SectorsTerminateCmd(SPTActorGetter), // Could not trace through the state-machine + spcli.TerminateSectorCmd(SPTActorGetter), spcli.SectorsCompactPartitionsCmd(SPTActorGetter), }} diff --git a/documentation/en/cli-sptool.md b/documentation/en/cli-sptool.md index a9bd90897..e116f759f 100644 --- a/documentation/en/cli-sptool.md +++ b/documentation/en/cli-sptool.md @@ -275,6 +275,7 @@ COMMANDS: check-expire Inspect expiring sectors expired Get or cleanup expired sectors extend Extend expiring sectors while not exceeding each sector's max life + terminate Forcefully terminate a sector (WARNING: This means losing power and pay a one-time termination penalty(including collateral) for the terminated sector) compact-partitions removes dead sectors from partitions and reduces the number of partitions used if possible help, h Shows a list of commands or help for one command @@ -372,6 +373,21 @@ OPTIONS: --help, -h show help ``` +### sptool sectors terminate +``` +NAME: + sptool sectors terminate - Forcefully terminate a sector (WARNING: This means losing power and pay a one-time termination penalty(including collateral) for the terminated sector) + +USAGE: + sptool sectors terminate [command options] [sectorNum1 sectorNum2 ...] + +OPTIONS: + --actor value specify the address of miner actor + --really-do-it pass this flag if you know what you are doing (default: false) + --from value specify the address to send the terminate message from + --help, -h show help +``` + ### sptool sectors compact-partitions ``` NAME: