See Also
Commented amount.h on Bitcoin Core Source Code
amount.h is one of simplest source files in Bitcoin Core. In fact we can paste it in it entirety and discuss it afterwards: First the typedef int64_t CAmount typedef is defined. To explain this typedef, perhaps we should discuss how a Bitcoin is stored in order to understand why a 64 bit integer is enough […]
bitcoind.cpp – Commented Bitcoin source code
As mentioned in the Bitcoin-Qt commented source code post, there are several approaches one can take to step into the Bitcoin source in approximately the same order as it runs. For instance, tests are a great source of tiny example programs. Then there’s the ubiquitous Bitcoin-Qt client and, of course, bitcoind. All are good options […]
qt/bitcoin.cpp – Commented Bitcoin source code
qt/bitcoin.cpp is where Bitcoin Core initialization leads us next. main.cpp, the Bitcoin Qt application entry point, is basically just a stub that calls GuiMain() at qt/bitcoin.cpp So, by sticking to our strategy, I’ll step into the call stack which now has GuiMain() at the top. GuiMain GuiMain gets the GUI set up, connects Qt signals/slots, […]
Commented consensus/merkle.cpp Merkle root on Bitcoin Core Source Code
In this article we take a look at one of the most important components of block validation and overall blockchain integrity: the Merkle Root derivation process. While it’s one of the most critical components in all of Bitcoin Core, its concept and implementation are very simple and straightforward. The consensus/merkle.h header consists solely of 3 […]