Skip to content

Commit

Permalink
Revert "price specification by user should match what miner has in th…
Browse files Browse the repository at this point in the history
…eir ask (#491)"

This reverts commit de7b105.
  • Loading branch information
dirkmc committed Feb 22, 2021
1 parent 1002d0c commit c7c8d71
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions storagemarket/impl/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,6 @@ func (c *Client) ProposeStorageDeal(ctx context.Context, params storagemarket.Pr
return nil, xerrors.Errorf("computing commP failed: %w", err)
}

pricePerEpoch := big.Mul(big.NewInt(int64(pieceSize.Padded())), params.Price)

if uint64(pieceSize.Padded()) > params.Info.SectorSize {
return nil, fmt.Errorf("cannot propose a deal whose piece size (%d) is greater than sector size (%d)", pieceSize.Padded(), params.Info.SectorSize)
}
Expand All @@ -365,7 +363,7 @@ func (c *Client) ProposeStorageDeal(ctx context.Context, params storagemarket.Pr
Label: label,
StartEpoch: params.StartEpoch,
EndEpoch: params.EndEpoch,
StoragePricePerEpoch: pricePerEpoch,
StoragePricePerEpoch: params.Price,
ProviderCollateral: pcMin,
ClientCollateral: big.Zero(),
VerifiedDeal: params.VerifiedDeal,
Expand Down

0 comments on commit c7c8d71

Please sign in to comment.