Skip to content

Commit

Permalink
add prints
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jun 23, 2024
1 parent ef28c37 commit a56c01d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions p2p/pex/pex_reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ func (r *Reactor) ensurePeersRegion() {
for id, addr := range toDialOutOfRegion {
toDial[id] = addr
}
fmt.Println("toDial", toDial)

// Dial picked addresses
for _, addr := range toDial {
Expand Down
2 changes: 2 additions & 0 deletions p2p/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ func (sw *Switch) filterPeer(p Peer) error {
// addPeer starts up the Peer and adds it to the Switch. Error is returned if
// the peer is filtered out or failed to start or can't be added.
func (sw *Switch) addPeer(p Peer) error {
fmt.Println("calling addPeer", p.ID())
if err := sw.filterPeer(p); err != nil {
return err
}
Expand Down Expand Up @@ -994,6 +995,7 @@ func (sw *Switch) addPeer(p Peer) error {
reactor.AddPeer(p)
}

fmt.Println("added peer", p.ID())
sw.Logger.Debug("Added peer", "peer", p)

return nil
Expand Down

0 comments on commit a56c01d

Please sign in to comment.