sector import: Plumb sector download task canfig
This commit is contained in:
@@ -146,6 +146,7 @@ func DefaultStorageMiner() *StorageMiner {
|
||||
},
|
||||
|
||||
Storage: SealerConfig{
|
||||
AllowSectorDownload: true,
|
||||
AllowAddPiece: true,
|
||||
AllowPreCommit1: true,
|
||||
AllowPreCommit2: true,
|
||||
|
||||
@@ -796,11 +796,17 @@ This parameter is ONLY applicable if the retrieval pricing policy strategy has b
|
||||
|
||||
Comment: ``,
|
||||
},
|
||||
{
|
||||
Num: "AllowSectorDownload",
|
||||
Type: "bool",
|
||||
|
||||
Comment: ``,
|
||||
},
|
||||
{
|
||||
Name: "AllowAddPiece",
|
||||
Type: "bool",
|
||||
|
||||
Comment: `Local worker config`,
|
||||
Comment: ``,
|
||||
},
|
||||
{
|
||||
Name: "AllowPreCommit1",
|
||||
|
||||
@@ -54,6 +54,7 @@ func WriteStorageFile(path string, config paths.StorageConfig) error {
|
||||
func (c *StorageMiner) StorageManager() sealer.Config {
|
||||
return sealer.Config{
|
||||
ParallelFetchLimit: c.Storage.ParallelFetchLimit,
|
||||
AllowSectorDownload: c.Storage.AllowSectorDownload,
|
||||
AllowAddPiece: c.Storage.AllowAddPiece,
|
||||
AllowPreCommit1: c.Storage.AllowPreCommit1,
|
||||
AllowPreCommit2: c.Storage.AllowPreCommit2,
|
||||
|
||||
@@ -409,7 +409,7 @@ type SealingConfig struct {
|
||||
type SealerConfig struct {
|
||||
ParallelFetchLimit int
|
||||
|
||||
// Local worker config
|
||||
AllowSectorDownload bool
|
||||
AllowAddPiece bool
|
||||
AllowPreCommit1 bool
|
||||
AllowPreCommit2 bool
|
||||
|
||||
Reference in New Issue
Block a user