提交 a7bced77 编写于 作者: F Felix Lange

p2p: log disconnect requests

This helps a lot with debugging.
上级 5ba51594
......@@ -198,6 +198,7 @@ func (p *Peer) handle(msg Msg) error {
// no need to discard or for error checking, we'll close the
// connection after this.
rlp.Decode(msg.Payload, &reason)
p.Debugf("Disconnect requested: %v\n", reason[0])
p.Disconnect(DiscRequested)
return discRequestedError(reason[0])
case msg.Code < baseProtocolLength:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册