Merge pull request #4376 from filecoin-project/steb/fix-load-panic
fix a panic on startup when we fail to load the tipset
This commit is contained in:
commit
9c6ee802cc
@ -670,6 +670,10 @@ func (mp *MessagePool) addLoaded(m *types.SignedMessage) error {
|
|||||||
|
|
||||||
curTs := mp.curTs
|
curTs := mp.curTs
|
||||||
|
|
||||||
|
if curTs == nil {
|
||||||
|
return xerrors.Errorf("current tipset not loaded")
|
||||||
|
}
|
||||||
|
|
||||||
snonce, err := mp.getStateNonce(m.Message.From, curTs)
|
snonce, err := mp.getStateNonce(m.Message.From, curTs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return xerrors.Errorf("failed to look up actor state nonce: %s: %w", err, ErrSoftValidationFailure)
|
return xerrors.Errorf("failed to look up actor state nonce: %s: %w", err, ErrSoftValidationFailure)
|
||||||
|
Loading…
Reference in New Issue
Block a user