Commit 9868efd0 authored by Aarsh Shah's avatar Aarsh Shah

fix memory store signed peer record bug

parent 0860fe0a
...@@ -252,7 +252,7 @@ func (mab *memoryAddrBook) addAddrs(p peer.ID, addrs []ma.Multiaddr, ttl time.Du ...@@ -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 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) delete(s.signedPeerRecords, p)
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment