An excellent article from NCC about several famous implementation issues for PoW-based chains:
Recommend reading!