From 0d34881a0ca3b3b823dfd3c16e84e66625b1c331 Mon Sep 17 00:00:00 2001 From: Travis Person Date: Wed, 7 Oct 2020 18:50:50 +0000 Subject: [PATCH] lotus-pcr: ignore all other messages --- cmd/lotus-pcr/main.go | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/cmd/lotus-pcr/main.go b/cmd/lotus-pcr/main.go index 14f4778c2..5b59ff03d 100644 --- a/cmd/lotus-pcr/main.go +++ b/cmd/lotus-pcr/main.go @@ -1037,29 +1037,22 @@ func (r *refunder) ProcessTipset(ctx context.Context, tipset *types.TipSet, refu } var messageMethod string + var processed bool if m.To == builtin.StorageMarketActorAddr { - var err error - var processed bool processed, messageMethod, refundValue, err = r.processTipsetStorageMarketActor(ctx, tipset, msg, recps[i]) - if err != nil { - continue - } - if !processed { - continue - } } if a.IsStorageMinerActor() { - var err error - var processed bool processed, messageMethod, refundValue, err = r.processTipsetStorageMinerActor(ctx, tipset, msg, recps[i]) - if err != nil { - continue - } - if !processed { - continue - } + } + + if err != nil { + log.Errorw("error while processing message", "cid", msg.Cid) + continue + } + if !processed { + continue } log.Debugw(