Merge pull request #9373 from sectrgt/master

fix: chain: Update chain.go
This commit is contained in:
Geoff Stuart 2022-11-04 10:52:52 -04:00 committed by GitHub
commit 54d3e412f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -62,6 +62,7 @@ var ChainCmd = &cli.Command{
ChainDecodeCmd, ChainDecodeCmd,
ChainEncodeCmd, ChainEncodeCmd,
ChainDisputeSetCmd, ChainDisputeSetCmd,
ChainPruneCmd,
}, },
} }

View File

@ -2059,6 +2059,7 @@ COMMANDS:
decode decode various types decode decode various types
encode encode various types encode encode various types
disputer interact with the window post disputer disputer interact with the window post disputer
prune prune the stored chain state and perform garbage collection
help, h Shows a list of commands or help for one command help, h Shows a list of commands or help for one command
OPTIONS: OPTIONS:
@ -2381,6 +2382,22 @@ OPTIONS:
``` ```
### lotus chain prune
```
NAME:
lotus chain prune - prune the stored chain state and perform garbage collection
USAGE:
lotus chain prune [command options] [arguments...]
OPTIONS:
--move-to value specify new path for coldstore during moving gc
--moving-gc use moving gc for garbage collecting the coldstore (default: false)
--online-gc use online gc for garbage collecting the coldstore (default: false)
--retention value specify state retention policy (default: -1)
```
## lotus log ## lotus log
``` ```
NAME: NAME: