fix: use multiaddr of reporting peer id

This commit is contained in:
Cassandra Heart 2023-11-15 01:34:23 -06:00
parent f2ad38da05
commit a19d1490ea
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -225,7 +225,7 @@ func (e *CeremonyDataClockConsensusEngine) handleCeremonyPeerListAnnounce(
}
}
multiaddr := e.pubSub.GetMultiaddrOfPeer(peerID)
multiaddr := e.pubSub.GetMultiaddrOfPeer(p.PeerId)
e.pubSub.SetPeerScore(p.PeerId, 10)
existing, ok := e.peerMap[string(p.PeerId)]