Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6088604

Browse files
authoredApr 4, 2023
Remove unused TxsMessage in mempool (celestiaorg#468)
* Remove unused TxsMessage * Fix documentation
1 parent 8d6d2bf commit 6088604

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed
 

‎mempool/reactor.go

-10
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,3 @@ func (memR *Reactor) broadcastTxRoutine(peer p2p.Peer) {
198198
}
199199
}
200200
}
201-
202-
// TxsMessage is a Message containing transactions.
203-
type TxsMessage struct {
204-
Txs []types.Tx
205-
}
206-
207-
// String returns a string representation of the TxsMessage.
208-
func (m *TxsMessage) String() string {
209-
return fmt.Sprintf("[TxsMessage %v]", m.Txs)
210-
}

‎spec/p2p/messages/mempool.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Mempool has one channel. The channel identifier is listed below.
1414
## Message Types
1515

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

1919
### Txs
2020

0 commit comments

Comments
 (0)
Please sign in to comment.