Skip to content

Commit

Permalink
fix: boost run missing staging-area dir (#1368)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc committed Apr 12, 2023
1 parent 01dbf3f commit 7a73fbc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node/modules/legacy_markets.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package modules

import (
"context"
"fmt"
"os"
"path/filepath"

piecefilestore "github.com/filecoin-project/boost-gfm/filestore"
Expand Down Expand Up @@ -40,6 +42,10 @@ func StorageProvider(minerAddress lotus_dtypes.MinerAddress,
net := smnet.NewFromLibp2pHost(h)

dir := filepath.Join(r.Path(), lotus_modules.StagingAreaDirName)
err := os.MkdirAll(dir, os.ModePerm)
if err != nil {
return nil, fmt.Errorf("creating directory for staging legacy markets deals %s: %w", dir, err)
}

store, err := piecefilestore.NewLocalFileStore(piecefilestore.OsPath(dir))
if err != nil {
Expand Down

0 comments on commit 7a73fbc

Please sign in to comment.