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:
Łukasz Magiera 2020-10-14 01:02:01 +02:00 committed by GitHub
commit 9c6ee802cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -670,6 +670,10 @@ func (mp *MessagePool) addLoaded(m *types.SignedMessage) error {
curTs := mp.curTs
if curTs == nil {
return xerrors.Errorf("current tipset not loaded")
}
snonce, err := mp.getStateNonce(m.Message.From, curTs)
if err != nil {
return xerrors.Errorf("failed to look up actor state nonce: %s: %w", err, ErrSoftValidationFailure)