Async Block Relaying With Compact Block Relay (BIP-152)

Compact Block Relay (BIP-152) introduced an efficient way to relay blocks when there's good mempool sync between nodes, best illustrated by this figure from the BIP:

enter image description here

The figure implies block can be relayed before the receiving node finishes processing it.

I want to know what is the situation in practice in Bitcoin Core?

I imagine this would be safe:

  1. Receive block in full (critical path)
  2. Verify PoW and Merkle root first (critical path)
  3. Relay the block (not on critical path, other thread can do)
  4. Validate fully and connect block (critical path)
  5. Start mining new tip (critical path)

So, what is the delay between receive and send?



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/8FM3Afy
via IFTTT

Popular posts from this blog

Future of Bitcoin encryption and security in a QC era

Possible rollback due to lazy reveal in BRC20?

A way to recover scammed Bitcoin investment