mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-19 23:21:46 +03:00
full_node: More use of FullNode.get_peers_with_peak
(#16045)
This commit is contained in:
parent
2e18f904dd
commit
3b20b4a2f0
@ -948,10 +948,7 @@ class FullNode:
|
||||
)
|
||||
# TODO: disconnect from peer which gave us the heaviest_peak, if nobody has the peak
|
||||
|
||||
peer_ids: Set[bytes32] = self.sync_store.get_peers_that_have_peak([target_peak.header_hash])
|
||||
peers_with_peak: List[WSChiaConnection] = [
|
||||
c for c in self.server.all_connections.values() if c.peer_node_id in peer_ids
|
||||
]
|
||||
peers_with_peak = self.get_peers_with_peak(target_peak.header_hash)
|
||||
|
||||
# Request weight proof from a random peer
|
||||
self.log.info(f"Total of {len(peers_with_peak)} peers with peak {target_peak.height}")
|
||||
|
Loading…
Reference in New Issue
Block a user