Skip to content

Commit

Permalink
Merge pull request #133 from libp2p/feat/fix-addrs-bug
Browse files Browse the repository at this point in the history
Fix memory store signed peer record bug
  • Loading branch information
Stebalien committed Mar 30, 2020
2 parents ba0d995 + 0134a89 commit 0d1a8fe
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions p2p/host/peerstore/pstoremem/addr_book.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,21 +240,6 @@ func (mab *memoryAddrBook) addAddrs(p peer.ID, addrs []ma.Multiaddr, ttl time.Du
}
}
}

// // when adding signed addrs, make sure only the addrs from the input list remain.
// if signed {
// for k := range amap {
// _, ok := addrSet[k]
// if !ok {
// delete(amap, k)
// }
// }
// }

// if we've expired all the signed addresses for a peer, remove their signed routing state record
if len(addrs) == 0 {
delete(s.signedPeerRecords, p)
}
}

// SetAddr calls mgr.SetAddrs(p, addr, ttl)
Expand Down

0 comments on commit 0d1a8fe

Please sign in to comment.