fix: miner: correctly count sector extensions
This commit is contained in:
parent
ce17546a76
commit
2d9412d97f
@ -1160,8 +1160,9 @@ var sectorsExtendCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
sectorsInDecl := int(sectorsWithoutClaimsCount) + len(sectorsWithClaims)
|
sectorsInDecl := int(sectorsWithoutClaimsCount) + len(sectorsWithClaims)
|
||||||
|
scount += sectorsInDecl
|
||||||
|
|
||||||
if scount+sectorsInDecl > addrSectors || len(p.Extensions) >= declMax {
|
if scount > addrSectors || len(p.Extensions) >= declMax {
|
||||||
params = append(params, p)
|
params = append(params, p)
|
||||||
p = miner.ExtendSectorExpiration2Params{}
|
p = miner.ExtendSectorExpiration2Params{}
|
||||||
scount = sectorsInDecl
|
scount = sectorsInDecl
|
||||||
|
Loading…
Reference in New Issue
Block a user