Skip to content

Commit

Permalink
Remove unused TxsMessage in mempool (cometbft#468)
Browse files Browse the repository at this point in the history
* Remove unused TxsMessage

* Fix documentation
  • Loading branch information
hvanz authored Apr 4, 2023
1 parent 8d6d2bf commit 6088604
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions mempool/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,3 @@ func (memR *Reactor) broadcastTxRoutine(peer p2p.Peer) {
}
}
}

// TxsMessage is a Message containing transactions.
type TxsMessage struct {
Txs []types.Tx
}

// String returns a string representation of the TxsMessage.
func (m *TxsMessage) String() string {
return fmt.Sprintf("[TxsMessage %v]", m.Txs)
}
2 changes: 1 addition & 1 deletion spec/p2p/messages/mempool.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Mempool has one channel. The channel identifier is listed below.
## Message Types

There is currently only one message that Mempool broadcasts and receives over
the p2p gossip network (via the reactor): `TxsMessage`
the p2p gossip network (via the reactor): `Txs`

### Txs

Expand Down

0 comments on commit 6088604

Please sign in to comment.