fix(pipeline): should return if error occurred when get network version (#11902)

This commit is contained in:
0x5459 2024-04-29 18:21:40 +08:00 committed by GitHub
parent 10877d2e66
commit 15f5f4745d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,6 +174,7 @@ func (m *Sealing) handleSubmitReplicaUpdate(ctx statemachine.Context, sector Sec
nv, err := m.Api.StateNetworkVersion(ctx.Context(), ts.Key())
if err != nil {
log.Errorf("failed to get network version: %+v", err)
return ctx.Send(SectorSubmitReplicaUpdateFailed{})
}
pams, deals, err := m.processPieces(ctx.Context(), sector, nv >= network.Version22)