I'm trying to understand how Bitcoin Core works in-depth. Can someone tell me where is the code executed during a blockchain reorganization in Bitcoin Core?

Any explanation would also be greatly appreciated.

  • Possible duplicate of Where in Bitcoin Core does it do X? – Ugam Kamat May 29 at 14:09
  • When you say reorganization, do you mean a spontaneous fork in the blockchain? or are you referring to the suggestion of Binance recently after their hack, to “reorganize” and rollback the blockchain, and you are wondereing if there is code in place to do the reorg of the blockchain? (spoiler alert: there isn’t any). – bitcoinero Jun 1 at 12:46
  • @bitcoinero I mean spontaneous fork. How the best chain is selected. – SystemGlitch Jun 2 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.