Get current seal proof when necessary
This commit is contained in:
parent
3cdd06b719
commit
d04e7d98ce
9
extern/storage-sealing/fsm.go
vendored
9
extern/storage-sealing/fsm.go
vendored
@ -410,15 +410,16 @@ func (m *Sealing) onUpdateSector(ctx context.Context, state *SectorInfo) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return xerrors.Errorf("getting config: %w", err)
|
return xerrors.Errorf("getting config: %w", err)
|
||||||
}
|
}
|
||||||
sp, err := m.currentSealProof(ctx)
|
|
||||||
if err != nil {
|
|
||||||
return xerrors.Errorf("getting seal proof type: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
shouldUpdateInput := m.stats.updateSector(cfg, m.minerSectorID(state.SectorNumber), state.State)
|
shouldUpdateInput := m.stats.updateSector(cfg, m.minerSectorID(state.SectorNumber), state.State)
|
||||||
|
|
||||||
// trigger more input processing when we've dipped below max sealing limits
|
// trigger more input processing when we've dipped below max sealing limits
|
||||||
if shouldUpdateInput {
|
if shouldUpdateInput {
|
||||||
|
sp, err := m.currentSealProof(ctx)
|
||||||
|
if err != nil {
|
||||||
|
return xerrors.Errorf("getting seal proof type: %w", err)
|
||||||
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
m.inputLk.Lock()
|
m.inputLk.Lock()
|
||||||
defer m.inputLk.Unlock()
|
defer m.inputLk.Unlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user