From e1c00bdbba30b19c6011657f889377fc9b397fca Mon Sep 17 00:00:00 2001 From: 0x5459 <0x5459@protonmail.com> Date: Fri, 3 Feb 2023 14:56:54 +0800 Subject: [PATCH] cli: fix extend cmd to get the right sector number --- cmd/lotus-miner/sectors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-miner/sectors.go b/cmd/lotus-miner/sectors.go index 1473262c4..8999c4578 100644 --- a/cmd/lotus-miner/sectors.go +++ b/cmd/lotus-miner/sectors.go @@ -761,7 +761,7 @@ func getSectorsFromFile(filePath string) ([]abi.SectorNumber, error) { func SectorNumsToBitfield(sectors []abi.SectorNumber) bitfield.BitField { var numbers []uint64 - for sector := range sectors { + for _, sector := range sectors { numbers = append(numbers, uint64(sector)) }