deals: gofmt
This commit is contained in:
parent
bee0ecf97f
commit
be4a5665fe
@ -88,7 +88,7 @@ func (p *Provider) accept(ctx context.Context, deal MinerDeal) (func(*MinerDeal)
|
|||||||
// TODO: check StorageCollateral
|
// TODO: check StorageCollateral
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
minPrice := types.BigDiv(types.BigMul(p.ask.Ask.Price, types.NewInt(deal.Proposal.PieceSize)), types.NewInt(1 << 30))
|
minPrice := types.BigDiv(types.BigMul(p.ask.Ask.Price, types.NewInt(deal.Proposal.PieceSize)), types.NewInt(1<<30))
|
||||||
if deal.Proposal.StoragePricePerEpoch.LessThan(minPrice) {
|
if deal.Proposal.StoragePricePerEpoch.LessThan(minPrice) {
|
||||||
return nil, xerrors.Errorf("storage price per epoch less than asking price: %s < %s", deal.Proposal.StoragePricePerEpoch, minPrice)
|
return nil, xerrors.Errorf("storage price per epoch less than asking price: %s < %s", deal.Proposal.StoragePricePerEpoch, minPrice)
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ type SignedStorageAsk struct {
|
|||||||
|
|
||||||
type StorageAsk struct {
|
type StorageAsk struct {
|
||||||
// Price per GiB / Epoch
|
// Price per GiB / Epoch
|
||||||
Price BigInt
|
Price BigInt
|
||||||
|
|
||||||
MinPieceSize uint64
|
MinPieceSize uint64
|
||||||
Miner address.Address
|
Miner address.Address
|
||||||
|
Loading…
Reference in New Issue
Block a user