Skip to content

Commit

Permalink
[EVM] Update loadtest client receipt polling (#1330)
Browse files Browse the repository at this point in the history
* update load test receipt polling logic

* Fix amount value and remove GetTxReceipt

* Fix lint

* Fix lint

* Remove mutex

* Fix

---------

Co-authored-by: yzang2019 <[email protected]>
Co-authored-by: Yiming Zang <[email protected]>
  • Loading branch information
3 people authored and udpatil committed Apr 17, 2024
1 parent 14d1718 commit 0bd17a2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions evmrpc/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package evmrpc
import (
"context"
"errors"
"sync"
"time"

"github.com/cosmos/cosmos-sdk/client"
Expand All @@ -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
Expand All @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 0bd17a2

Please sign in to comment.