Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

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 authored Mar 30, 2020
2 parents 0860fe0 + cdec762 commit 1019086
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions 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 1019086

Please sign in to comment.