From ed6c9570014e60def81ca9fe7bbf3b8afcd24185 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Sun, 1 Mar 2020 17:09:38 -0800 Subject: [PATCH] more misc fixes --- checks.go | 2 +- states.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/checks.go b/checks.go index 4fad2315b..cbede661f 100644 --- a/checks.go +++ b/checks.go @@ -108,7 +108,7 @@ func checkSeal(ctx context.Context, maddr address.Address, si SectorInfo, api se } if cid.Cid(c) != *si.CommD { - return &ErrBadCommD{xerrors.Errorf("on chain CommD differs from sector: %x != %x", r.Return, si.CommD)} + return &ErrBadCommD{xerrors.Errorf("on chain CommD differs from sector: %s != %s", cid.Cid(c), si.CommD)} } if int64(head.Height())-int64(si.Ticket.Epoch+build.SealRandomnessLookback) > build.SealRandomnessLookbackLimit { diff --git a/states.go b/states.go index b3f033a9d..ae5c3d8ad 100644 --- a/states.go +++ b/states.go @@ -91,7 +91,7 @@ func (m *Sealing) handlePreCommitting(ctx statemachine.Context, sector SectorInf case *ErrBadCommD: // TODO: Should this just back to packing? (not really needed since handleUnsealed will do that too) return ctx.Send(SectorSealFailed{xerrors.Errorf("bad CommD error: %w", err)}) case *ErrExpiredTicket: - return ctx.Send(SectorSealFailed{xerrors.Errorf("bad CommD error: %w", err)}) + return ctx.Send(SectorSealFailed{xerrors.Errorf("ticket expired: %w", err)}) default: return xerrors.Errorf("checkSeal sanity check error: %w", err) }