mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-30 05:01:44 +00:00
Add private peer ID tracking to AddrBook (#1989)
* Add private peer ID tracking to AddrBook * Remove private peer tracking/blocking from pex * debug level msg when we fail to add private address
This commit is contained in:
committed by
Anton Kaliaev
parent
449846ccb2
commit
6c4ca140ed
@ -295,7 +295,8 @@ func TestPEXReactorCrawlStatus(t *testing.T) {
|
||||
func TestPEXReactorDoesNotAddPrivatePeersToAddrBook(t *testing.T) {
|
||||
peer := p2p.CreateRandomPeer(false)
|
||||
|
||||
pexR, book := createReactor(&PEXReactorConfig{PrivatePeerIDs: []string{string(peer.NodeInfo().ID)}})
|
||||
pexR, book := createReactor(&PEXReactorConfig{})
|
||||
book.AddPrivateIDs([]string{string(peer.NodeInfo().ID)})
|
||||
defer teardownReactor(book)
|
||||
|
||||
// we have to send a request to receive responses
|
||||
|
Reference in New Issue
Block a user