Fix bug in searchForIndexedMsg which always returns an error

This commit is contained in:
Fridrik Asmundsson 2023-03-29 13:18:26 +02:00 committed by Maciej Witowski
parent a29622520a
commit ed553a8363

View File

@ -221,7 +221,10 @@ func (sm *StateManager) searchForIndexedMsg(ctx context.Context, mcid cid.Cid, m
}
r, foundMsg, err := sm.tipsetExecutedMessage(ctx, xts, mcid, m.VMMessage(), false)
return xts, r, foundMsg, xerrors.Errorf("error in tipstExecutedMessage: %w", err)
if err != nil {
return nil, nil, cid.Undef, xerrors.Errorf("error in tipstExecutedMessage: %w", err)
}
return xts, r, foundMsg, nil
}
// searchBackForMsg searches up to limit tipsets backwards from the given