• Juan Batiz-Benet's avatar
    reprovide: wait a minute before reproviding · 2ab1cc56
    Juan Batiz-Benet authored
    Many times, a node will start up only to shut down immediately.
    In these cases, reproviding is costly to both the node, and the
    rest of the network. Also note: the probability of a node being
    up another minute increases with uptime.
    
    TODO: maybe this should be 5 * time.Minute
    2ab1cc56
dht_test.go 17.2 KB