fix memory store signed peer record bug

This commit is contained in:
Aarsh Shah 2020-03-27 16:18:53 +05:30
parent 0860fe0aa7
commit 9868efd05f

View File

@ -252,7 +252,7 @@ func (mab *memoryAddrBook) addAddrs(p peer.ID, addrs []ma.Multiaddr, ttl time.Du
// }
// if we've expired all the signed addresses for a peer, remove their signed routing state record
if len(addrs) == 0 {
if len(amap) == 0 {
delete(s.signedPeerRecords, p)
}
}