Merge pull request #5166 from liyue201/patch-1
fix curSealing out of MaxSealingSectors limit
This commit is contained in:
commit
46c7f047d4
2
extern/storage-sealing/garbage.go
vendored
2
extern/storage-sealing/garbage.go
vendored
@ -38,7 +38,7 @@ func (m *Sealing) PledgeSector() error {
|
||||
}
|
||||
|
||||
if cfg.MaxSealingSectors > 0 {
|
||||
if m.stats.curSealing() > cfg.MaxSealingSectors {
|
||||
if m.stats.curSealing() >= cfg.MaxSealingSectors {
|
||||
return xerrors.Errorf("too many sectors sealing (curSealing: %d, max: %d)", m.stats.curSealing(), cfg.MaxSealingSectors)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user