@@ -21,6 +21,7 @@ import (
21
21
"github.com/filecoin-project/go-state-types/abi"
22
22
"github.com/filecoin-project/go-statestore"
23
23
24
+ "github.com/filecoin-project/lotus/node/config"
24
25
"github.com/filecoin-project/lotus/storage/paths"
25
26
"github.com/filecoin-project/lotus/storage/sealer/sealtasks"
26
27
"github.com/filecoin-project/lotus/storage/sealer/storiface"
@@ -30,7 +31,7 @@ import (
30
31
// only uses miner and does NOT use any remote worker.
31
32
func TestPieceProviderSimpleNoRemoteWorker (t * testing.T ) {
32
33
// Set up sector storage manager
33
- sealerCfg := Config {
34
+ sealerCfg := config. SealerConfig {
34
35
ParallelFetchLimit : 10 ,
35
36
AllowAddPiece : true ,
36
37
AllowPreCommit1 : true ,
@@ -89,7 +90,7 @@ func TestReadPieceRemoteWorkers(t *testing.T) {
89
90
logging .SetAllLoggers (logging .LevelDebug )
90
91
91
92
// miner's worker can only add pieces to an unsealed sector.
92
- sealerCfg := Config {
93
+ sealerCfg := config. SealerConfig {
93
94
ParallelFetchLimit : 10 ,
94
95
AllowAddPiece : true ,
95
96
AllowPreCommit1 : false ,
@@ -198,7 +199,7 @@ func generatePieceData(size uint64) []byte {
198
199
return bz
199
200
}
200
201
201
- func newPieceProviderTestHarness (t * testing.T , mgrConfig Config , sectorProofType abi.RegisteredSealProof ) * pieceProviderTestHarness {
202
+ func newPieceProviderTestHarness (t * testing.T , mgrConfig config. SealerConfig , sectorProofType abi.RegisteredSealProof ) * pieceProviderTestHarness {
202
203
ctx := context .Background ()
203
204
// listen on tcp socket to create an http server later
204
205
address := "0.0.0.0:0"
@@ -217,7 +218,7 @@ func newPieceProviderTestHarness(t *testing.T, mgrConfig Config, sectorProofType
217
218
wsts := statestore .New (namespace .Wrap (dstore , datastore .NewKey ("/worker/calls" )))
218
219
smsts := statestore .New (namespace .Wrap (dstore , datastore .NewKey ("/stmgr/calls" )))
219
220
220
- mgr , err := New (ctx , localStore , remoteStore , storage , index , mgrConfig , wsts , smsts )
221
+ mgr , err := New (ctx , localStore , remoteStore , storage , index , mgrConfig , config. ProvingConfig {}, wsts , smsts )
221
222
require .NoError (t , err )
222
223
223
224
// start a http server on the manager to serve sector file requests.
0 commit comments