Skip to content

Commit

Permalink
disable gas checks on events
Browse files Browse the repository at this point in the history
  • Loading branch information
nibty committed Jan 31, 2024
1 parent cad15bf commit a009c92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions eventcheck/epochcheck/epoch_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func CalcGasPowerUsed(e inter.EventPayloadI, rules opera.Rules) uint64 {
}

func (v *Checker) checkGas(e inter.EventPayloadI, rules opera.Rules) error {
return nil
if e.GasPowerUsed() > rules.Economy.Gas.MaxEventGas {
return ErrTooBigGasUsed
}
Expand Down
1 change: 1 addition & 0 deletions eventcheck/gaspowercheck/gas_power_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func CalcValidatorGasPowerPerSec(

// Validate event
func (v *Checker) Validate(e inter.EventI, selfParent inter.EventI) error {
return nil
gasPowers, err := v.CalcGasPower(e, selfParent)
if err != nil {
return err
Expand Down

0 comments on commit a009c92

Please sign in to comment.