Skip to content

Commit

Permalink
Merge branch 'fix-mempool-spam' into test/abci-routing
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Feb 14, 2024
2 parents cc8bbb1 + 1870ef9 commit 160fc86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/mempool/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ func (r *Reactor) broadcastTxRoutine(ctx context.Context, peerID types.NodeID) {
r.logger.Error("failed to gossip transaction", "peerID", peerID, "error", err)
return
}
// This is optimistic approach, we assume that the transaction was successfully
// gossiped to the peer.
memTx.SetPeer(peerMempoolID)

r.logger.Debug("gossiped tx to peer",
"tx", tmstrings.LazySprintf("%X", memTx.tx.Hash()),
Expand Down

0 comments on commit 160fc86

Please sign in to comment.