Skip to content

Commit

Permalink
opt: fix duplicate check exitcode
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Aug 15, 2023
1 parent 3318296 commit a750e63
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions chain/consensus/compute_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ func (t *TipSetExecutor) ApplyBlocks(ctx context.Context,
return xerrors.Errorf("callback failed on cron message: %w", err)
}
}
if ret.ExitCode != 0 {
return xerrors.Errorf("cron exit was non-zero: %d", ret.ExitCode)
}

return nil
}
Expand Down
3 changes: 0 additions & 3 deletions chain/consensus/filcns/filecoin.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ var RewardFunc = func(ctx context.Context, vmi vm.Interface, em stmgr.ExecMonito
}
}

if ret.ExitCode != 0 {
return xerrors.Errorf("reward application message failed (exit %d): %s", ret.ExitCode, ret.ActorErr)
}
return nil
}

Expand Down

0 comments on commit a750e63

Please sign in to comment.