Skip to content

Commit

Permalink
Use system processor for SkipValidation txs
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams committed Jan 2, 2025
1 parent 5e51ad5 commit 681a6f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public TransactionResult Warmup(Transaction transaction, in BlockExecutionContex

private TransactionResult ExecuteCore(Transaction tx, in BlockExecutionContext blCtx, ITxTracer tracer, ExecutionOptions opts)
{
if (tx.IsSystem())
if (tx.IsSystem() || opts.HasFlag(ExecutionOptions.SkipValidation))
{
_systemTransactionProcessor ??= new SystemTransactionProcessor(SpecProvider, WorldState, VirtualMachine, _codeInfoRepository, _logManager);
return _systemTransactionProcessor.Execute(tx, blCtx.Header, tracer, opts);
Expand Down

0 comments on commit 681a6f9

Please sign in to comment.