From 05d65c3f887a351845629e99fe9808d24835f935 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Mon, 24 Aug 2020 17:40:12 -0700 Subject: [PATCH] slightly better than panicking --- chain/messagepool/selection.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chain/messagepool/selection.go b/chain/messagepool/selection.go index 0cc9545cb..ab0326896 100644 --- a/chain/messagepool/selection.go +++ b/chain/messagepool/selection.go @@ -606,7 +606,8 @@ func (mp *MessagePool) createMessageChains(actor address.Address, mset map[uint6 // the balance a, err := mp.api.StateGetActor(actor, ts) if err != nil { - panic(err) // TODO + log.Errorf("failed to load actor state, not building chain for %s: %w", actor, err) + return nil } curNonce := a.Nonce