deals: Inactive deal in client.sealing is an error
This commit is contained in:
parent
8c39486736
commit
aaa073bdf8
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user