Skip to content

Commit

Permalink
Only zero-gas transactions may be service ones (#5989)
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis committed Nov 7, 2022
1 parent 897887c commit 82bb408
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ func applyTransaction(config *params.ChainConfig, engine consensus.Engine, gp *G
}
msg.SetCheckNonce(!cfg.StatelessExec)

if engine != nil {
if msg.FeeCap().IsZero() && engine != nil {
// Only zero-gas transactions may be service ones
syscall := func(contract common.Address, data []byte) ([]byte, error) {
return SysCallContract(contract, data, *config, ibs, header, engine, true /* constCall */)
}
Expand Down

0 comments on commit 82bb408

Please sign in to comment.