From 443612ac9b0757fa06522e9b34583eba36784d09 Mon Sep 17 00:00:00 2001 From: Cassandra Heart Date: Sat, 6 Jan 2024 02:00:54 -0600 Subject: [PATCH] Handle rare peerstore refresh case On rare occasions, the peer store removes an address directly after successfully polling for it --- node/p2p/blossomsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/p2p/blossomsub.go b/node/p2p/blossomsub.go index 4e3cbe8..ac5e929 100644 --- a/node/p2p/blossomsub.go +++ b/node/p2p/blossomsub.go @@ -415,7 +415,7 @@ func (b *BlossomSub) GetMultiaddrOfPeer(peerId []byte) string { return "" } - return b.h.Peerstore().Addrs(peer.ID(peerId))[0].String() + return addrs[0].String() } func (b *BlossomSub) StartDirectChannelListener(