mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
swarm/network: removed debug lines
This commit is contained in:
parent
1b6f480eba
commit
1598e68600
1 changed files with 18 additions and 16 deletions
|
|
@ -23,7 +23,6 @@ import (
|
|||
"net"
|
||||
"sync"
|
||||
"time"
|
||||
"strings"
|
||||
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/log"
|
||||
|
|
@ -292,21 +291,24 @@ func (self *bzzHandshake) Perform(p *p2p.Peer, rw p2p.MsgReadWriter) (err error)
|
|||
return fmt.Errorf("version mismatch %d (!= %d)", rhs.Version, self.Version)
|
||||
}
|
||||
self.peerAddr = rhs.Addr
|
||||
peerid := p.ID()
|
||||
log.Warn(
|
||||
strings.Join(
|
||||
[]string{
|
||||
"handshake ok:",
|
||||
fmt.Sprintf("p2p.Peer.ID(): ...... %v", p.ID()),
|
||||
fmt.Sprintf("peerAddr.UAddr: ...... %x", self.peerAddr.UAddr[:32]),
|
||||
fmt.Sprintf("peerAddr.OAddr: ...... %x", self.peerAddr.OAddr[:32]),
|
||||
fmt.Sprintf("selfAddr.UAddr: ...... %x", self.Addr.UAddr[:32]),
|
||||
fmt.Sprintf("selfAddr.OAddr: ...... %x", self.Addr.OAddr[:32]),
|
||||
fmt.Sprintf("ToOverlayAddr(p2p.Peer.ID): .... %x", ToOverlayAddr(peerid[:])),
|
||||
fmt.Sprintf("ToOverlayAddr(peerAddr.UAddr): .. %x", ToOverlayAddr(self.peerAddr.UAddr)),
|
||||
}, "\n",
|
||||
),
|
||||
)
|
||||
//log.Debug("L&R handshake", "local", fmt.Sprintf("%x", self.Addr.Over()), "remote", fmt.Sprintf("%x", rhs.Addr.Over()))
|
||||
// log.Debug("RHS handshake", "addr", rhs.Addr, "peeraddr", rhs.peerAddr)
|
||||
// log.Debug("LHS handshake", "addr", self.Addr, "peeraddr", self.peerAddr)
|
||||
//
|
||||
// log.Warn(
|
||||
// strings.Join(
|
||||
// []string{
|
||||
// "handshake ok:",
|
||||
// fmt.Sprintf("p2p.Peer.ID(): ...... %v", p.ID()),
|
||||
// fmt.Sprintf("peerAddr.UAddr: ...... %x", self.peerAddr.UAddr[:32]),
|
||||
// fmt.Sprintf("peerAddr.OAddr: ...... %x", self.peerAddr.OAddr[:32]),
|
||||
// fmt.Sprintf("selfAddr.UAddr: ...... %x", self.Addr.UAddr[:32]),
|
||||
// fmt.Sprintf("selfAddr.OAddr: ...... %x", self.Addr.OAddr[:32]),
|
||||
// fmt.Sprintf("ToOverlayAddr(p2p.Peer.ID): .... %x", ToOverlayAddr(peerid[:])),
|
||||
// fmt.Sprintf("ToOverlayAddr(peerAddr.UAddr): .. %x", ToOverlayAddr(self.peerAddr.UAddr)),
|
||||
// }, "\n",
|
||||
// ),
|
||||
// )
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue