Skip to content

Commit

Permalink
Merge pull request #4376 from filecoin-project/steb/fix-load-panic
Browse files Browse the repository at this point in the history
fix a panic on startup when we fail to load the tipset
  • Loading branch information
magik6k authored Oct 13, 2020
2 parents d5cea9f + b61281b commit 9c6ee80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chain/messagepool/messagepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9c6ee80

Please sign in to comment.