fix peer IP tracking structure
This commit is contained in:
parent
20e3cf02b1
commit
398fb82e5f
2
score.go
2
score.go
|
@ -125,7 +125,7 @@ type peerScore struct {
|
||||||
peerStats map[peer.ID]*peerStats
|
peerStats map[peer.ID]*peerStats
|
||||||
|
|
||||||
// IP colocation tracking
|
// IP colocation tracking
|
||||||
peerIPs map[string]peer.ID
|
peerIPs map[string]map[peer.ID]struct{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func newPeerScore(params *PeerScoreParams) *peerScore {
|
func newPeerScore(params *PeerScoreParams) *peerScore {
|
||||||
|
|
Loading…
Reference in New Issue