Skip to content

Commit

Permalink
fix: don't parse VM messages whos source failed to apply
Browse files Browse the repository at this point in the history
- fixes #1088
  • Loading branch information
frrist committed Nov 16, 2022
1 parent 8d3c4b7 commit eaceb2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/messageexecutions/vm/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ func (t *Task) ProcessTipSets(ctx context.Context, current *types.TipSet, execut
default:
}

if parentMsg.Ret.ExitCode.IsError() {
log.Debugf("skip parsing vm messages for source message %s with exit code %s", parentMsg.Cid, parentMsg.Ret.ExitCode.String())
continue
}

// TODO this loop could be parallelized if it becomes a bottleneck.
// NB: the getActorCode method is the expensive call since it resolves addresses and may load the statetree.
for _, child := range util.GetChildMessagesOf(parentMsg) {
Expand Down

0 comments on commit eaceb2b

Please sign in to comment.