fix handleSubmitPreCommitBatch() preCommitParams error

This commit is contained in:
johnli-helloworld 2021-06-24 11:35:15 +08:00 committed by Steven Allen
parent c1f0ebbefa
commit aea338ecf0

View File

@ -404,7 +404,7 @@ func (m *Sealing) handleSubmitPreCommitBatch(ctx statemachine.Context, sector Se
params, deposit, _, err := m.preCommitParams(ctx, sector)
if params == nil || err != nil {
return ctx.Send(SectorChainPreCommitFailed{xerrors.Errorf("preCommitParams: %w", err)})
return err
}
res, err := m.precommiter.AddPreCommit(ctx.Context(), sector, deposit, params)