Post
Topic
Board Development & Technical Discussion
Merits 6 from 2 users
Re: How exactly are forks resolved in bitcoin?
by
domob
on 05/11/2018, 18:58:20 UTC
⭐ Merited by suchmoon (4) ,ETFbitcoin (2)
Your description is correct - the UTXO set is reverted to the previous state and then updated for the blocks in the new chain branch.  Reverting is done by means of "undo data" that is stored along each block by Bitcoin Core - and that keeps all the information necessary to revert changes made (e.g. outputs that have been spent in the block and were thus removed from the UTXO set, so that they can be added back in).