fix curSealing out of MaxSealingSectors limit

This commit is contained in:
stirlingx
2020-12-10 11:04:42 +08:00
committed by GitHub
parent e1be89b442
commit 3c50baaf5b
+1 -1
View File
@@ -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)
}
}