What's the guarantee that every peer has the same number of blocks? Are they asynchronously updated through a global endpoint or something similar?
And how do these peers communicate with each other?
And how do these peers communicate with each other?
The chain with the greatest amount of proof of work will propagate to the majority of the network and be accepted as valid by these nodes (assuming it also follows the protocol rules).