rename manual peers to persistent peers

This commit is contained in:
Anton Kaliaev
2018-01-09 16:18:05 -06:00
parent 37f86f9518
commit e4897b7bdd
27 changed files with 72 additions and 72 deletions

View File

@@ -100,7 +100,7 @@ func (r *PEXReactor) GetChannels() []*ChannelDescriptor {
func (r *PEXReactor) AddPeer(p Peer) {
if p.IsOutbound() {
// For outbound peers, the address is already in the books.
// Either it was added in DialManualPeers or when we
// Either it was added in DialPersistentPeers or when we
// received the peer's address in r.Receive
if r.book.NeedMoreAddrs() {
r.RequestPEX(p)

View File

@@ -323,7 +323,7 @@ func (sw *Switch) DialPeersAsync(addrBook *AddrBook, peers []string, persistent
}
if addrBook != nil {
// add manual peers to `addrBook`
// add persistent peers to `addrBook`
ourAddrS := sw.nodeInfo.ListenAddr
ourAddr, _ := NewNetAddressString(ourAddrS)
for _, netAddr := range netAddrs {