mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
network: add debug on message receival
This commit is contained in:
parent
1c28dd2567
commit
da09fda575
1 changed files with 4 additions and 0 deletions
|
@ -607,6 +607,10 @@ func (s *Server) requestBlocks(p Peer) error {
|
|||
|
||||
// handleMessage processes the given message.
|
||||
func (s *Server) handleMessage(peer Peer, msg *Message) error {
|
||||
s.log.Debug("got msg",
|
||||
zap.Stringer("addr", peer.RemoteAddr()),
|
||||
zap.String("type", string(msg.CommandType())))
|
||||
|
||||
// Make sure both server and peer are operating on
|
||||
// the same network.
|
||||
if msg.Magic != s.Net {
|
||||
|
|
Loading…
Reference in a new issue