delete remaining NewReceive and convert to Receive

This commit is contained in:
William Banfield
2022-10-20 13:56:42 -04:00
parent d0bfcef698
commit f8d37520e9
9 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ func (memR *Reactor) RemovePeer(peer p2p.Peer, reason interface{}) {
// Receive implements Reactor.
// It adds any received transactions to the mempool.
func (memR *Reactor) NewReceive(e p2p.Envelope) {
func (memR *Reactor) Receive(e p2p.Envelope) {
msg, err := protoToMsg(e.Message)
if err != nil {
memR.Logger.Error("Error decoding message", "src", e.Src, "chId", e.ChannelID, "err", err)