From de84a414020baf884c27d8144fbf246e619eb970 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Tue, 16 Aug 2016 13:22:13 -0700 Subject: [PATCH] identify: log protocols from remote peers in peerstore --- p2p/protocol/identify/id.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/protocol/identify/id.go b/p2p/protocol/identify/id.go index 3c44f24..cba8b8e 100644 --- a/p2p/protocol/identify/id.go +++ b/p2p/protocol/identify/id.go @@ -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) -- GitLab