add allocate in Receive calls

This commit is contained in:
William Banfield
2022-11-03 15:20:41 -04:00
parent fbad107210
commit e91616c15f
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ func (conR *Reactor) ReceiveEnvelope(e p2p.Envelope) {
}
func (conR *Reactor) Receive(chID byte, peer p2p.Peer, msgBytes []byte) {
var msg *tmcons.Message
msg := &tmcons.Message{}
err := proto.Unmarshal(msgBytes, msg)
if err != nil {
panic(err)