Post
Topic
Board Development & Technical Discussion
Re: How exactly are forks resolved in bitcoin?
by
Anonymous Kid
on 05/11/2018, 23:30:17 UTC
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).

Oh i see its quite an obvious answer  Roll Eyes. thanks