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 b528fcb commit 046efc2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions go/enclave/enclave.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,6 @@ func (e *enclaveImpl) SubmitTx(tx common.EncryptedTx) (*responses.RawTx, common.
if e.crossChainProcessors.Local.IsSyntheticTransaction(*decryptedTx) {
return responses.AsPlaintextError(responses.ToInternalError(fmt.Errorf("synthetic transaction coming from external rpc"))), nil
}
if err = e.checkGas(decryptedTx); err != nil {
e.logger.Info("gas check failed", log.ErrKey, err.Error())
return responses.AsEncryptedError(err, vkHandler), nil
}

if err = e.service.SubmitTransaction(decryptedTx); err != nil {
e.logger.Debug("Could not submit transaction", log.TxKey, decryptedTx.Hash(), log.ErrKey, err)
Expand Down

0 comments on commit 046efc2

Please sign in to comment.