From a750e63a7b6657511de0c149eb7df4e0bdc0fd89 Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Tue, 15 Aug 2023 16:28:03 +0800 Subject: [PATCH] opt: fix duplicate check exitcode --- chain/consensus/compute_state.go | 3 --- chain/consensus/filcns/filecoin.go | 3 --- 2 files changed, 6 deletions(-) diff --git a/chain/consensus/compute_state.go b/chain/consensus/compute_state.go index 64b9624ea..2797528cd 100644 --- a/chain/consensus/compute_state.go +++ b/chain/consensus/compute_state.go @@ -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 } diff --git a/chain/consensus/filcns/filecoin.go b/chain/consensus/filcns/filecoin.go index fd49f1c9a..8801bad60 100644 --- a/chain/consensus/filcns/filecoin.go +++ b/chain/consensus/filcns/filecoin.go @@ -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 }