See Also
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 […]
Introduction to our commented Bitcoin source code section
Below you’ll find the main commented Bitcoin source code sections (sorted by section name and filename). Core amount.h – Defines the CAmount typedef, implements minimum and maximum valid amount range check. base58.cpp – The encoding function used for Bitcoin addresses. Base58 removes some potentially ambiguous characters from Base64 so Bitcoin addresses can be written down […]
init.cpp Bitcoin Core startup source code
This is our first exploration of Bitcoin-specific code in this series of articles. Until now we’ve looked at how the Qt system was set up to run the GUI and Bitcoin services in separate threads and how those threads interconnected using Qt signals and slots. The BitcoinCore class in qt/bitcoin.cpp is the glue that ties […]
qt/bitcoin.h in Qt Bitcoin Core source code
qt/bitcoin.h pulls the config/bitcoin-config.h definitions that were generated by the configure script during the build process. This header also contains the Qt Q_OBJECT BitcoinCore class which handles 3 signals and provides 2 slots. (If you’re not familiar with Qt, please go here for an intro to slots and signals or here for an explanation about […]