feat(miner deals): create subdir to miner repo for staged deals

This commit is contained in:
frrist
2021-07-29 21:08:38 -07:00
committed by Steven Allen
parent 73b2b5f384
commit ca697c9aa2
3 changed files with 62 additions and 1 deletions
+1 -1
View File
@@ -607,7 +607,7 @@ func StorageProvider(minerAddress dtypes.MinerAddress,
df dtypes.StorageDealFilter,
) (storagemarket.StorageProvider, error) {
net := smnet.NewFromLibp2pHost(h)
store, err := piecefilestore.NewLocalFileStore(piecefilestore.OsPath(r.Path()))
store, err := piecefilestore.NewLocalFileStore(piecefilestore.OsPath(filepath.Join(r.Path(), "deal-staging")))
if err != nil {
return nil, err
}