change sharePeers algorithm
change sharePeers algorithm

Previously, sharePeers returned up to 10 random peers. No
duplicate checking was done. Now, it instead returns the first 10
(or fewer) peers from tcps.AddressBook(). As before, these peers
will be randomly selected, but this time due to map iteration
rather than explicit calls to math/rand.

The Bitcoin equivalent of sharePeers returns up to 2500 peers,
choosing them from the set of peers that have timestamps <3 hours.
We may choose to adopt a similar scheme in the future, to prevent
the sharing of dead nodes. (Alternatively, we could run a "garbage
collector" to remove stale peers before sharing them.)

mharkus/Sia,mnsl/Sia,mharkus/Sia,ChrisSchinnerl/Sia,MrStrong/Sia,Mingling94/Sia,rivine/rivine,cyrozap/Sia,MrStrong/Sia,ChrisSchinnerl/Sia,NebulousLabs/Sia,mnsl/Sia,mtlynch/Sia,NebulousLabs/Sia,rivine/rivine,ericflo/Sia,mtlynch/Sia,kustomzone/Sia,ericflo/Sia,johnathanhowell/Sia