parent
10615b53ad
commit
473a192b85
@ -845,7 +845,15 @@ var sectorsRenewCmd = &cli.Command{
|
|||||||
for l, exts := range extensions {
|
for l, exts := range extensions {
|
||||||
for newExp, numbers := range exts {
|
for newExp, numbers := range exts {
|
||||||
scount += len(numbers)
|
scount += len(numbers)
|
||||||
if scount > policy.GetAddressedSectorsMax(nv) || len(p.Extensions) == policy.GetDeclarationsMax(nv) {
|
addrSectors, err := policy.GetAddressedSectorsMax(nv)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
declMax, err := policy.GetDeclarationsMax(nv)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if scount > addrSectors || len(p.Extensions) == declMax {
|
||||||
params = append(params, p)
|
params = append(params, p)
|
||||||
p = miner5.ExtendSectorExpirationParams{}
|
p = miner5.ExtendSectorExpirationParams{}
|
||||||
scount = len(numbers)
|
scount = len(numbers)
|
||||||
|
Loading…
Reference in New Issue
Block a user