mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 10:56:14 +03:00
always update best timestamp even if we weren't able to connect to keep track of gossiped peers properly (#9538)
This commit is contained in:
parent
35cab7cea2
commit
772e607681
@ -188,10 +188,10 @@ class Crawler:
|
||||
new_peer_reliability = PeerReliability(response_peer.host)
|
||||
if self.crawl_store is not None:
|
||||
self.crawl_store.maybe_add_peer(new_peer, new_peer_reliability)
|
||||
await self.crawl_store.update_best_timestamp(
|
||||
response_peer.host,
|
||||
self.best_timestamp_per_peer[response_peer.host],
|
||||
)
|
||||
await self.crawl_store.update_best_timestamp(
|
||||
response_peer.host,
|
||||
self.best_timestamp_per_peer[response_peer.host],
|
||||
)
|
||||
for host, version in self.version_cache:
|
||||
self.handshake_time[host] = int(time.time())
|
||||
self.host_to_version[host] = version
|
||||
|
Loading…
Reference in New Issue
Block a user