How does a new node get all the previous blocks in a blockchain?

How does a new node get all the previous blocks in a blockchain?

From what I understand, when a new full node is started, it begins by fetching all the previous blocks in the blockchain from it's peers.

I want to know how exactly it does that? Does it ask for a local copy of the blockchain from other peers and save it? In case multiple peers have different chains, how does it resolve?

https://ift.tt/2IUfm7O

Comments

Popular posts from this blog

Tor proxy on Electrum, what does Port: 9150 and 9050 mean?

Is there any python library could be used to decodescript in output

Lightning network (lnd): What's the best way to report lnd server issues/ask for help with channels that won't close?