From aaa073bdf8312a7bbfa6c492e4e4e2113220b567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 8 Nov 2019 21:18:16 +0100 Subject: [PATCH] deals: Inactive deal in client.sealing is an error --- chain/deals/client_states.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/deals/client_states.go b/chain/deals/client_states.go index 678305c95..c01d0f430 100644 --- a/chain/deals/client_states.go +++ b/chain/deals/client_states.go @@ -195,7 +195,7 @@ func (c *Client) sealing(ctx context.Context, deal ClientDeal) (func(*ClientDeal } 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)