|
|
|
|
|
by dmichulke
2198 days ago
|
|
So you're saying they just accept a block because it's in the longest chain and don't check for double-spends? I have a hard time believing that given that cost for checking should be extremely low relative to creating a valid block. Never checked the source though |
|
Say for example you have these blocks:
And you have a transaction t in b2 that you want to reverse. Then you build another chain starting with b1 like so: Where you double-spend t in b2'. The miners thinks that both b2 and b2' are valid. When they choose to switch from the b2 chain to the b2' chain, it will seem like all transactions in b2 and b3 just disappear (unless included in the other chain of course).Does that make sense?