From 7c5b70707fe23e603bf0a579d5ba25c8b27eef69 Mon Sep 17 00:00:00 2001 From: Steven Landers Date: Thu, 8 Feb 2024 00:08:11 -0500 Subject: [PATCH] [EVM] Update loadtest client receipt polling (#1330) * update load test receipt polling logic * Fix amount value and remove GetTxReceipt * Fix lint * Fix lint * Remove mutex * Fix --------- Co-authored-by: yzang2019 Co-authored-by: Yiming Zang <50607998+yzang2019@users.noreply.github.com> --- evmrpc/send.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/evmrpc/send.go b/evmrpc/send.go index a22c8e6da7..a1b3875442 100644 --- a/evmrpc/send.go +++ b/evmrpc/send.go @@ -3,7 +3,6 @@ package evmrpc import ( "context" "errors" - "sync" "time" "github.com/cosmos/cosmos-sdk/client" @@ -24,7 +23,6 @@ type SendAPI struct { tmClient rpcclient.Client txConfig client.TxConfig sendConfig *SendConfig - slowMu *sync.Mutex keeper *keeper.Keeper ctxProvider func(int64) sdk.Context homeDir string @@ -40,7 +38,6 @@ func NewSendAPI(tmClient rpcclient.Client, txConfig client.TxConfig, sendConfig tmClient: tmClient, txConfig: txConfig, sendConfig: sendConfig, - slowMu: &sync.Mutex{}, keeper: k, ctxProvider: ctxProvider, homeDir: homeDir, @@ -51,10 +48,6 @@ func NewSendAPI(tmClient rpcclient.Client, txConfig client.TxConfig, sendConfig func (s *SendAPI) SendRawTransaction(ctx context.Context, input hexutil.Bytes) (hash common.Hash, err error) { startTime := time.Now() defer recordMetrics("eth_sendRawTransaction", startTime, err == nil) - if s.sendConfig.slow { - s.slowMu.Lock() - defer s.slowMu.Unlock() - } tx := new(ethtypes.Transaction) if err = tx.UnmarshalBinary(input); err != nil { return