sector import: Plumb sector download task canfig

This commit is contained in:
Łukasz Magiera
2022-09-19 12:13:06 +02:00
parent 12a8ab5ac7
commit 9c6d531ae7
10 changed files with 30 additions and 6 deletions
+1
View File
@@ -146,6 +146,7 @@ func DefaultStorageMiner() *StorageMiner {
},
Storage: SealerConfig{
AllowSectorDownload: true,
AllowAddPiece: true,
AllowPreCommit1: true,
AllowPreCommit2: true,
+7 -1
View File
@@ -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",
+1
View File
@@ -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,
+1 -1
View File
@@ -409,7 +409,7 @@ type SealingConfig struct {
type SealerConfig struct {
ParallelFetchLimit int
// Local worker config
AllowSectorDownload bool
AllowAddPiece bool
AllowPreCommit1 bool
AllowPreCommit2 bool