diff --git a/cmd/lotus/daemon.go b/cmd/lotus/daemon.go index 7af8e79a0..1a81d780c 100644 --- a/cmd/lotus/daemon.go +++ b/cmd/lotus/daemon.go @@ -9,15 +9,6 @@ import ( "encoding/hex" "encoding/json" "fmt" - "github.com/filecoin-project/go-address" - cborutil "github.com/filecoin-project/go-cbor-util" - "github.com/filecoin-project/go-state-types/builtin" - "github.com/filecoin-project/lotus/chain/actors" - "github.com/filecoin-project/lotus/chain/gen/slashfilter" - "github.com/filecoin-project/specs-actors/actors/builtin/miner" - "github.com/ipfs/go-cid" - levelds "github.com/ipfs/go-ds-leveldb" - ldbopts "github.com/syndtr/goleveldb/leveldb/opt" "io" "os" "path" @@ -25,9 +16,12 @@ import ( "strings" "github.com/DataDog/zstd" + "github.com/ipfs/go-cid" + levelds "github.com/ipfs/go-ds-leveldb" metricsprom "github.com/ipfs/go-metrics-prometheus" "github.com/mitchellh/go-homedir" "github.com/multiformats/go-multiaddr" + ldbopts "github.com/syndtr/goleveldb/leveldb/opt" "github.com/urfave/cli/v2" "go.opencensus.io/plugin/runmetrics" "go.opencensus.io/stats" @@ -36,12 +30,19 @@ import ( "golang.org/x/xerrors" "gopkg.in/cheggaaa/pb.v1" + "github.com/filecoin-project/go-address" + cborutil "github.com/filecoin-project/go-cbor-util" "github.com/filecoin-project/go-jsonrpc" "github.com/filecoin-project/go-paramfetch" + "github.com/filecoin-project/go-state-types/builtin" + "github.com/filecoin-project/specs-actors/actors/builtin/miner" + lapi "github.com/filecoin-project/lotus/api" "github.com/filecoin-project/lotus/build" + "github.com/filecoin-project/lotus/chain/actors" "github.com/filecoin-project/lotus/chain/consensus" "github.com/filecoin-project/lotus/chain/consensus/filcns" + "github.com/filecoin-project/lotus/chain/gen/slashfilter" "github.com/filecoin-project/lotus/chain/index" "github.com/filecoin-project/lotus/chain/stmgr" "github.com/filecoin-project/lotus/chain/store" diff --git a/documentation/en/cli-lotus.md b/documentation/en/cli-lotus.md index 9fe755cde..7ece0b58e 100644 --- a/documentation/en/cli-lotus.md +++ b/documentation/en/cli-lotus.md @@ -75,6 +75,9 @@ OPTIONS: --api-max-req-size value maximum API request size accepted by the JSON RPC server (default: 0) --restore value restore from backup file --restore-config value config file to use when restoring from backup + --slash-consensus Report consensus fault (default: false) + --slasher-sender value optionally specify the account to report consensus from + --slashdb-dir value (default: "slash watch db dir path") --help, -h show help (default: false) ```