Skip to content

Commit

Permalink
remove check performed in the mempool
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Dec 19, 2023
1 parent 046efc2 commit c976da8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions go/enclave/enclave.go
Original file line number Diff line number Diff line change
Expand Up @@ -1432,18 +1432,6 @@ func (e *revertError) ErrorData() interface{} {
return e.reason
}

func (e *enclaveImpl) checkGas(tx *types.Transaction) error {
txGasPrice := tx.GasPrice()
if txGasPrice == nil {
return fmt.Errorf("rejected transaction %s. No gas price was set", tx.Hash())
}
minGasPrice := e.config.MinGasPrice
if txGasPrice.Cmp(minGasPrice) == -1 {
return fmt.Errorf("rejected transaction %s. Gas price was only %d, wanted at least %d", tx.Hash(), txGasPrice, minGasPrice)
}
return nil
}

// Returns the params extracted from an eth_getLogs request.
func extractGetLogsParams(paramList []interface{}) (*filters.FilterCriteria, *gethcommon.Address, error) {
// We extract the first param, the filter for the logs.
Expand Down

0 comments on commit c976da8

Please sign in to comment.