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:
parent
61d3b2da6d
commit
f7241cd95f
1 changed files with 2 additions and 1 deletions
|
@ -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 "+
|
||||
|
|
Loading…
Add table
Reference in a new issue