freddiecoleman / chia-network-scanner

Scans the Chia network for active full nodes.
https://www.chiaexplorer.com/
MIT License
15 stars 14 forks source link

Update timestamp when we encounter a peer more than once and it has a higher timestamp #7

Closed freddiecoleman closed 3 years ago

freddiecoleman commented 3 years ago

Previous behaviour

When we encounter a peer that we have already traversed it is immediately discarded and we move onto the next peer.

New behaviour

When we encounter a peer that we have already traversed we check to see if the new version of that peer has a higher timestamp, if it does we update our record of the peer to have the more recent timestamp. We still do not traverse the peer a second time.