Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
need 4 speed
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jan 31, 2024
1 parent 56e7390 commit 50bc4dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cosmos/runtime/txpool/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,13 @@ func (m *Mempool) Insert(ctx context.Context, sdkTx sdk.Tx) error {
ethTx := wet.Unwrap()

// Optmistically send to the validator.
if !m.isValidator && m.ethclient != nil {
if m.ethclient != nil {
// Broadcast the transaction to the validator.
// Note: we don't care about the response here.
_ = m.ethclient.SendTransaction(context.Background(), ethTx)
go func() {
_ = m.ethclient.SendTransaction(context.Background(), ethTx)

}()
}

// Insert the tx into the txpool as a remote.
Expand Down

0 comments on commit 50bc4dc

Please sign in to comment.