▲ | xnorswap 4 days ago | |||||||||||||||||||||||||||||||||||||
Maybe there's more resilience to prevent chain swaps now, but my understanding of the original blockchain algorithm is that: At block N someone could start to privately mine (empty) blocks. They keep mining in private until block N+x is public, at which time the private (51%) chain is length N+x+1. They then announce their longer chain. By the protocol, this longer chain (technically "most work" chain) is the more trusted one, and undoes any transactions in N+1 through N+x. | ||||||||||||||||||||||||||||||||||||||
▲ | SamPatt 4 days ago | parent [-] | |||||||||||||||||||||||||||||||||||||
More or less, but the private chain doesn't need to contain empty blocks. A more sophisticated attack would include all the legitimate transactions on the network except for their own transaction(s) which they're trying to double spend. That way the network isn't disrupted apart from the parties you're double spending against. | ||||||||||||||||||||||||||||||||||||||
|