- Blockchain By Example
- Bellaj Badr Richard Horrocks Xun (Brian) Wu
- 85字
- 2021-06-10 18:53:40
Cloning the Bitcoin source code
Prior to building the code, start by creating a source directory called workspace/, where we can clone the Bitcoin Core source repository:
mkdir workspace && cd
To download the Bitcoin Core source code, we'll use git to clone the latest version of its repository in the current local directory:
git clone https://github.com/bitcoin/bitcoin.git && cd bitcoin
The download process will take a few minutes. At the end, you'll get a new directory called bitcoin/ containing all the Bitcoin source code files.