deals: Inactive deal in client.sealing is an error

This commit is contained in:
Łukasz Magiera 2019-11-08 21:18:16 +01:00
parent 8c39486736
commit aaa073bdf8

View File

@ -195,7 +195,7 @@ func (c *Client) sealing(ctx context.Context, deal ClientDeal) (func(*ClientDeal
} }
if sd.ActivationEpoch == 0 { if sd.ActivationEpoch == 0 {
return true, nil return false, xerrors.Errorf("deal wasn't active: deal=%d, parentState=%s, h=%d", deal.DealID, ts.ParentState(), ts.Height())
} }
log.Infof("Storage deal %d activated at epoch %d", deal.DealID, sd.ActivationEpoch) log.Infof("Storage deal %d activated at epoch %d", deal.DealID, sd.ActivationEpoch)