Skip to content

Commit

Permalink
Revert "fix: stmgr: check message validity before invoking vm" (#10270)
Browse files Browse the repository at this point in the history
This reverts commit 2bbd1fb.
  • Loading branch information
raulk authored Feb 14, 2023
1 parent b1e1d2d commit 11ac325
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions chain/stmgr/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,6 @@ func (sm *StateManager) callInternal(ctx context.Context, msg *types.Message, pr
}
}

// This isn't strictly necessary, but the underlying VM will assume that the message is
// valid and may not return helpful debugging information. Checking here makes message
// validity issues easier to debug.
nv := sm.GetNetworkVersion(ctx, ts.Height())
if err := msg.ValidForBlockInclusion(0, nv); err != nil {
return nil, xerrors.Errorf("message not valid for network version %d: %w", nv, err)
}

// Unless executing on a specific state cid, apply all the messages from the current tipset
// first. Unfortunately, we can't just execute the tipset, because that will run cron. We
// don't want to apply miner messages after cron runs in a given epoch.
Expand Down

0 comments on commit 11ac325

Please sign in to comment.