slightly better than panicking

This commit is contained in:
whyrusleeping 2020-08-24 17:40:12 -07:00
parent cf3298cd04
commit 05d65c3f88

View File

@ -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