Compact Block Relay (BIP-152) launched an environment friendly technique to relay blocks when there’s good mempool sync between nodes, finest illustrated by this determine from the BIP:
The determine implies block may be relayed earlier than the receiving node finishes processing it.
I wish to know what’s the state of affairs in observe in Bitcoin Core?
I think about this may be secure:
- Obtain block in full (vital path)
- Confirm PoW and Merkle root first (vital path)
- Relay the block (not on vital path, different thread can do)
- Validate totally and join block (vital path)
- Begin mining new tip (vital path)
So, what’s the delay between obtain and ship?