Skip to content

Commit

Permalink
take miner address as parameter (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
acruikshank authored Feb 4, 2020
1 parent 7f4d916 commit 87675b3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions storagemarket/impl/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,7 @@ var (
ErrDataTransferFailed = errors.New("deal data transfer failed")
)

func NewProvider(ds datastore.Batching, bs blockstore.Blockstore, fs filestore.FileStore, pieceStore piecestore.PieceStore, dataTransfer datatransfer.Manager, spn storagemarket.StorageProviderNode) (storagemarket.StorageProvider, error) {
addr, err := ds.Get(datastore.NewKey("miner-address"))
if err != nil {
return nil, err
}
minerAddress, err := address.NewFromBytes(addr)
if err != nil {
return nil, err
}
func NewProvider(ds datastore.Batching, bs blockstore.Blockstore, fs filestore.FileStore, pieceStore piecestore.PieceStore, dataTransfer datatransfer.Manager, spn storagemarket.StorageProviderNode, minerAddress address.Address) (storagemarket.StorageProvider, error) {
carIO := cario.NewCarIO()
pio := pieceio.NewPieceIO(carIO, fs, bs)

Expand Down

0 comments on commit 87675b3

Please sign in to comment.