comment responses
This commit is contained in:
parent
a884bb15bd
commit
6a66a11e54
@ -277,7 +277,7 @@ var runCmd = &cli.Command{
|
|||||||
},
|
},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "data-cid",
|
Name: "data-cid",
|
||||||
Usage: "Run the data-cid task. --add-piece defaults this to true unless overridden",
|
Usage: "Run the data-cid task. true|false (default: inherits --addpiece)",
|
||||||
Value: true,
|
Value: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -389,9 +389,14 @@ var runCmd = &cli.Command{
|
|||||||
taskTypes = append(taskTypes, sealtasks.TTAddPiece)
|
taskTypes = append(taskTypes, sealtasks.TTAddPiece)
|
||||||
ttDataCidDefault = true
|
ttDataCidDefault = true
|
||||||
}
|
}
|
||||||
if (cctx.IsSet("data-cid") && cctx.Bool("data-cid")) ||
|
if workerType == sealtasks.WorkerSealing {
|
||||||
(!cctx.IsSet("data-cid") && ttDataCidDefault) {
|
if cctx.IsSet("data-cid") {
|
||||||
taskTypes = append(taskTypes, sealtasks.TTDataCid)
|
if cctx.Bool("data-cid") {
|
||||||
|
taskTypes = append(taskTypes, sealtasks.TTDataCid)
|
||||||
|
}
|
||||||
|
} else if ttDataCidDefault {
|
||||||
|
taskTypes = append(taskTypes, sealtasks.TTDataCid)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (workerType == sealtasks.WorkerSealing || cctx.IsSet("sector-download")) && cctx.Bool("sector-download") {
|
if (workerType == sealtasks.WorkerSealing || cctx.IsSet("sector-download")) && cctx.Bool("sector-download") {
|
||||||
taskTypes = append(taskTypes, sealtasks.TTDownloadSector)
|
taskTypes = append(taskTypes, sealtasks.TTDownloadSector)
|
||||||
|
Loading…
Reference in New Issue
Block a user