mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-09-04 04:45:12 +00:00
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) {
|
switch msg := msg.(type) {
|
||||||
case *wire.MsgBlock:
|
case *wire.MsgBlock:
|
||||||
block = msg
|
block = msg
|
||||||
case *wire.MsgVersion, *wire.MsgVerAck:
|
case *wire.MsgVersion, *wire.MsgVerAck,
|
||||||
|
*wire.MsgPing, *wire.MsgPong:
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
log.Debugf("Received unexpected message "+
|
log.Debugf("Received unexpected message "+
|
||||||
|
|
Loading…
Add table
Reference in a new issue