Skip to content

Commit

Permalink
Merge pull request #648 from application-research/lawrence/make-piece…
Browse files Browse the repository at this point in the history
…-size-inclusive-for-miner-selection

make piece size inclusive for miner selection
  • Loading branch information
alvin-reyes authored Dec 5, 2022
2 parents 0297b01 + 821d238 commit 935aa13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/miner_ask.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (msa *MinerStorageAsk) GetPrice(isVerifiedDeal bool) types.BigInt {
}

func (msa *MinerStorageAsk) SizeIsCloseEnough(pieceSize abi.PaddedPieceSize) bool {
if pieceSize > msa.MinPieceSize && pieceSize < msa.MaxPieceSize {
if pieceSize >= msa.MinPieceSize && pieceSize <= msa.MaxPieceSize {
return true
}
return false
Expand Down

0 comments on commit 935aa13

Please sign in to comment.