identify: log protocols from remote peers in peerstore

This commit is contained in:
Jeromy 2016-08-16 13:22:13 -07:00
parent 6635e3d7f5
commit de84a41402
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ func (ids *IDService) consumeMessage(mes *pb.Identify, c inet.Conn) {
p := c.RemotePeer()
// mes.Protocols
ids.Host.Peerstore().SetProtocols(p, mes.Protocols)
// mes.ObservedAddr
ids.consumeObservedAddress(mes.GetObservedAddr(), c)