From c976da87a535904b71952d57addd958f64851969 Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Tue, 19 Dec 2023 12:07:45 +0000 Subject: [PATCH] remove check performed in the mempool --- go/enclave/enclave.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/go/enclave/enclave.go b/go/enclave/enclave.go index 88d0dd5eeb..88025246f3 100644 --- a/go/enclave/enclave.go +++ b/go/enclave/enclave.go @@ -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.