Revert "fix: stmgr: check message validity before invoking vm" (#10270)

This reverts commit 2bbd1fbbb6.
This commit is contained in:
raulk 2023-02-14 14:06:33 +00:00 committed by GitHub
parent b1e1d2d205
commit 11ac325d1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.