From 821d2380d30d1e3b0bd7c9d337bdc865ac92819b Mon Sep 17 00:00:00 2001 From: Lawrence Enehizena Date: Sat, 3 Dec 2022 07:36:38 +0100 Subject: [PATCH] make piece size inclusive for miner selection --- model/miner_ask.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/miner_ask.go b/model/miner_ask.go index 84367a74..d815f4f1 100644 --- a/model/miner_ask.go +++ b/model/miner_ask.go @@ -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