• Juan Batiz-Benet's avatar
    p2p/protocol/identify: dont double count observers · c754f210
    Juan Batiz-Benet authored
    If the same peer observed the same address twice, it would be
    double counted as different observations. This change adds a map
    to make sure we're counting each observer once.
    
    This is easily extended to require more than two observations,
    but i have not yet encountered NATs for whom this is relevant.
    c754f210
obsaddr_test.go 1.75 KB