Browse Source

log requesting addresses

pull/1607/head
Anton Kaliaev 6 years ago
parent
commit
67068a34f2
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      p2p/pex/pex_reactor.go

+ 2
- 1
p2p/pex/pex_reactor.go View File

@ -7,7 +7,7 @@ import (
"sync"
"time"
"github.com/tendermint/go-amino"
amino "github.com/tendermint/go-amino"
cmn "github.com/tendermint/tmlibs/common"
"github.com/tendermint/tendermint/p2p"
@ -281,6 +281,7 @@ func (r *PEXReactor) receiveRequest(src Peer) error {
// RequestAddrs asks peer for more addresses if we do not already
// have a request out for this peer.
func (r *PEXReactor) RequestAddrs(p Peer) {
r.Logger.Debug("Request addrs", "from", p)
id := string(p.ID())
if r.requestsSent.Has(id) {
return


Loading…
Cancel
Save