Did Bitcoin Core relay blocks sequentially or in parallel to peers before Compact Blocks?

Did Bitcoin Core relay blocks sequentially or in parallel to peers before Compact Blocks?

As I can see in the Bitcoin code, currently a node sends a block in parallel to all its peers. This makes sense as the block ng time is relatively small compared to the P2P latency. However, my question is how this mechanism worked before BIP152 when a peer had to send 1MB block? In that case, it makes more sense to send the block first to 1 peer before start sending to the others. This is because if we finish sending the block to the first peer, we will utilize his upload bandwidth faster.

https://ift.tt/2zxSsNw

Comments

Popular posts from this blog

Bitcoin Core errors with database block

sendrawtransaction and txn-mempool-conflict