I’d like to get some comments on a mitigation idea for slow block propagation for miners. The topic of how slow block propagation can harm miners has been discussed recently in many places (e.g. Bitcoin Optech Newsletter #381 Recap Podcast | Bitcoin Optech ). The topic often came up on the side of compact block propagation delays due to transaction filtering (but that’s not my focus here).
The straightforward-looking idea is to mine optimistically on a new chain tip while its validation is pending. I wouldn’t be surprised if this has been discussed before, or there are some reasons against it, or if my understanding is incorrect, so any feedback is welcome.
When I new (compact) block is received from a peer, the phases are:
- validation of the header (hash, proof of work)
- if not all transactions are available, requesting the missing ones (can cause delay)
- validation of all transaction
- accepting as a new tip.
The idea is to temporarily accept the new tip for mining, while validation is pending.
- After header validation, the block is placed in a special slot for optimistically-accepted-block-pending-validation, let’s call it “optimistic tip” for short.
- If optimistic tip is set, mining template generation considers it
- When validation succeeds, the block becomes the ‘normal’ tip, the slot can be cleared, everything returns to normal.
- When validation fails, the slot is cleared, thus tip revers to the old.
- If the validation is not finished in a give time, e.g. 20 seconds, the slot is cleared (revert to old tip). Note that validation still continues, and it’s result is processed as normal.
The difference is that during the validation period mining is directed to the new tip, reducing the risk of orphan blocks. The negative outcome is if for some reason the new tip fails validation, which should be a rare case, and the loss in the case is the wasted mining time for the limited time (e.g. max 20 secs). As the block headers are work-protected, I see no risk of an attack vector (intentionally forcing the node into mining on an invalid block).