stub enable/disable storage deal commands

This commit is contained in:
laser 2020-06-11 12:20:11 -07:00
parent 5421d0d1c5
commit 67110ce739
2 changed files with 20 additions and 0 deletions

View File

@ -33,6 +33,8 @@ func main() {
setPriceCmd, setPriceCmd,
workersCmd, workersCmd,
provingCmd, provingCmd,
enableCmd,
disableCmd,
} }
jaeger := tracing.SetupJaegerTracing("lotus") jaeger := tracing.SetupJaegerTracing("lotus")
defer func() { defer func() {

View File

@ -10,6 +10,24 @@ import (
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )
var enableCmd = &cli.Command{
Name: "enable",
Usage: "Configure the miner to consider storage deal proposals",
Flags: []cli.Flag{},
Action: func(cctx *cli.Context) error {
panic("enable storage deals")
},
}
var disableCmd = &cli.Command{
Name: "disable",
Usage: "Configure the miner to reject all storage deal proposals",
Flags: []cli.Flag{},
Action: func(cctx *cli.Context) error {
panic("disable storage deals")
},
}
var setPriceCmd = &cli.Command{ var setPriceCmd = &cli.Command{
Name: "set-price", Name: "set-price",
Usage: "Set price that miner will accept storage deals at (FIL / GiB / Epoch)", Usage: "Set price that miner will accept storage deals at (FIL / GiB / Epoch)",