forked from TrueCloudLab/neoneo-go
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.
|
// handleMessage processes the given message.
|
||||||
func (s *Server) handleMessage(peer Peer, msg *Message) error {
|
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
|
// Make sure both server and peer are operating on
|
||||||
// the same network.
|
// the same network.
|
||||||
if msg.Magic != s.Net {
|
if msg.Magic != s.Net {
|
||||||
|
|
Loading…
Reference in a new issue