Exercises
Subsequent sections will contain various exercises related to their subject areas which will require controlling Bitcoin Core nodes, compiling Bitcoin Core and making changes to the code.
To prepare for this we will begin with the following exercises which will ensure that our environment is ready:
-
Build Bitcoin Core from source
-
Clone Bitcoin Core repository from GitHub
-
Check out the latest release tag (e.g.
v24.0.1
) -
Install any dependencies required for your system
-
Follow the build instructions to compile the programs
-
Run
make check
to run the unit tests -
Follow the documentation to install dependencies required to run the functional tests
-
Run the functional tests
-
-
Run a
bitcoind
node in regtest mode and control it using thecli
tool./src/bitcoind -regtest
will start bitcoind in regtest mode. You can then control it using./src/bitcoin-cli -regtest -getinfo
-
Run and control a Bitcoin Core node using the
TestShell
python class from the test framework in a Jupyter notebook-
See Running nodes via Test Framework for more information on how to do this
-
-
Review a Pull Request from the repo
-
Find a PR (which can be open or closed) on GitHub which looks interesting and/or accessible
-
Checkout the PR locally
-
Review the changes
-
Record any questions that arise during code review
-
Build the PR
-
Test the PR
-
Break a test / add a new test
-
Leave review feedback on GitHub, possibly including:
ACK/NACK
Approach
How you reviewed it
Your system specifications if relevant
Any suggested nits
-