storagefsm: Handle preCommitParams errors better
This commit is contained in:
parent
b6b56320bf
commit
8b84e499c5
2
extern/storage-sealing/states_sealing.go
vendored
2
extern/storage-sealing/states_sealing.go
vendored
@ -360,7 +360,7 @@ func (m *Sealing) handleSubmitPreCommitBatch(ctx statemachine.Context, sector Se
|
|||||||
|
|
||||||
params, deposit, _, err := m.preCommitParams(ctx, sector)
|
params, deposit, _, err := m.preCommitParams(ctx, sector)
|
||||||
if params == nil || err != nil {
|
if params == nil || err != nil {
|
||||||
return err
|
return ctx.Send(SectorChainPreCommitFailed{xerrors.Errorf("preCommitParams: %w", err)})
|
||||||
}
|
}
|
||||||
|
|
||||||
res, err := m.precommiter.AddPreCommit(ctx.Context(), sector, deposit, params)
|
res, err := m.precommiter.AddPreCommit(ctx.Context(), sector, deposit, params)
|
||||||
|
Loading…
Reference in New Issue
Block a user