blockchain – In Bitcoin Core, are blocks sent in parallel or in series?

on

|

views

and

comments


Blocks are downloaded in series from a given peer, but a node can download blocks from multiple peers at the same time, effectively downloading blocks in parallel. This parallel downloading is not about downloading different parts of the same block from different peers, but rather downloading different blocks from different peers.

This design allows a node to download the blockchain more quickly, as it is not limited by the upload speed of a single peer. It also adds a layer of redundancy.

Despite the parallel downloading of blocks, they must be processed serially. This is essential for the node to maintain accurate information about the existing unspent transaction outputs (UTXOs) and to verify the validity of transactions.

The actual implementation of this process in Bitcoin Core is quite complex and involves various aspects like handling timeouts, validating blocks, and so on. You can review the actual code in the Bitcoin Core GitHub repository to get a deeper understanding.

You may also check the P2P Network part of Bitcoin Developer site – see the explanation for Block, GetBlocks, GetData, GetHeaders messages, that are involved when blocks are sent between nodes.

Share this
Tags

Must-read

The Great Bitcoin Crash of 2024

Bitcoin Crash The cryptocurrency world faced the hell of early 2024 when the most popular Bitcoin crashed by over 80% in a matter of weeks,...

Bitcoin Gambling: A comprehensive guide in 2024

Bitcoin Gambling With online currencies rapidly gaining traditional acceptance, the intriguing convergence of the crypto-trek and gambling industries is taking place. Cryptocurrency gambling, which started...

The Rise of Bitcoin Extractor: A comprehensive guide 2024

Bitcoin Extractor  Crypto mining is resources-thirsty with investors in mining hardware and those investing in the resources needed as the main beneficiaries. In this sense,...

Recent articles

More like this