chain: prevent logging of ping/pong msgs in PrunedBlockDispatcher

These messages are also part of normal operation, so we should log
stating they are unexpected.
This commit is contained in:
Wilmer Paulino 2021-04-16 14:43:56 -07:00
parent 61d3b2da6d
commit f7241cd95f
No known key found for this signature in database
GPG key ID: 6DF57B9F9514972F

View file

@ -392,7 +392,8 @@ func (d *PrunedBlockDispatcher) newQueryPeer(
switch msg := msg.(type) {
case *wire.MsgBlock:
block = msg
case *wire.MsgVersion, *wire.MsgVerAck:
case *wire.MsgVersion, *wire.MsgVerAck,
*wire.MsgPing, *wire.MsgPong:
return
default:
log.Debugf("Received unexpected message "+