Skip to content

Commit a2eb052

Browse files
authored
fix: don't parse VM messages whos source failed to apply (#1091)
- fixes #1088
1 parent d90220e commit a2eb052

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tasks/messageexecutions/vm/task.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ func (t *Task) ProcessTipSets(ctx context.Context, current *types.TipSet, execut
9090
default:
9191
}
9292

93+
if parentMsg.Ret.ExitCode.IsError() {
94+
log.Debugf("skip parsing vm messages for source message %s with exit code %s", parentMsg.Cid, parentMsg.Ret.ExitCode.String())
95+
continue
96+
}
97+
9398
// TODO this loop could be parallelized if it becomes a bottleneck.
9499
// NB: the getActorCode method is the expensive call since it resolves addresses and may load the statetree.
95100
for _, child := range util.GetChildMessagesOf(parentMsg) {

0 commit comments

Comments
 (0)