diff --git a/cmd/fsd/main.go b/cmd/fsd/main.go index 3d4db34..1326466 100644 --- a/cmd/fsd/main.go +++ b/cmd/fsd/main.go @@ -156,7 +156,7 @@ func main() { } defer inode.Close() - snode := sia.New(db, cfg.Renterd, log.Named("sia")) + snode := sia.New(db, inode, cfg.Renterd, log.Named("sia")) apiListener, err := net.Listen("tcp", cfg.API.Address) if err != nil { diff --git a/sia/sia.go b/sia/sia.go index 0b90b53..7f711b0 100644 --- a/sia/sia.go +++ b/sia/sia.go @@ -185,9 +185,10 @@ func (n *Node) CalculateBlocks(ctx context.Context, r io.Reader) ([]Block, error } // New creates a new Sia IPFS store -func New(store Store, cfg config.Renterd, log *zap.Logger) *Node { +func New(store Store, ipfs IPFSProvider, cfg config.Renterd, log *zap.Logger) *Node { return &Node{ store: store, + ipfs: ipfs, log: log, renterd: cfg,