mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-11-22 08:08:11 +00:00
Edited ch03_bitcoin-core.adoc with Atlas code editor
This commit is contained in:
parent
b4a26cdd0b
commit
1298fa0b4d
@ -78,7 +78,7 @@ next chapter, which is less technical.
|
||||
=== Compiling Bitcoin Core from the Source Code
|
||||
|
||||
Bitcoin Core's
|
||||
source code((("Bitcoin Core", "compiling from source code", id="bitcoin-core-compile")))((("compiling", "Bitcoin Core from source code", id="compile-bitcoin-core")))((("source code", "compiling Bitcoin Core", id="source-code-compile"))) can be downloaded as an archive or by cloning the
|
||||
source code((("Bitcoin Core", "compiling from source code", id="bitcoin-core-compile")))((("compiling Bitcoin Core from source code", id="compile-bitcoin-core")))((("source code", "compiling Bitcoin Core", id="source-code-compile"))) can be downloaded as an archive or by cloning the
|
||||
source repository from GitHub. On the https://oreil.ly/hN9g1[Bitcoin Core download
|
||||
page], select the most recent version and download the compressed
|
||||
archive of the source code. Alternatively, use the Git command line to create a
|
||||
@ -134,7 +134,7 @@ $ cd bitcoin
|
||||
|
||||
==== Selecting a Bitcoin Core Release
|
||||
|
||||
By default,((("Bitcoin Core", "compiling from source code", "selecting release version", id="bitcoin-core-compile-release")))((("compiling", "Bitcoin Core from source code", "selecting release version", id="compile-bitcoin-core-release")))((("source code", "compiling Bitcoin Core", "selecting release version", id="source-code-compile-release")))((("release version (Bitcoin Core)", "selecting", id="release-select")))((("selecting", "release version (Bitcoin Core)", id="select-release"))) the local copy will be synchronized with the
|
||||
By default,((("Bitcoin Core", "compiling from source code", "selecting release version", id="bitcoin-core-compile-release")))((("compiling Bitcoin Core from source code", "selecting release version", id="compile-bitcoin-core-release")))((("source code", "compiling Bitcoin Core", "selecting release version", id="source-code-compile-release")))((("release version (Bitcoin Core)", "selecting", id="release-select")))((("selecting", "release version (Bitcoin Core)", id="select-release"))) the local copy will be synchronized with the
|
||||
most recent code, which might be an unstable or beta version of Bitcoin.
|
||||
Before compiling the code, select a specific version by checking out ((("tags")))a
|
||||
release _tag_. This will synchronize the local copy with a specific
|
||||
@ -173,7 +173,7 @@ state without impacting any branches by switching back to a branch.
|
||||
HEAD is now at b3f866a8d Merge bitcoin/bitcoin#26647: 24.0.1 final changes
|
||||
----
|
||||
|
||||
You can confirm you have the desired version "checked out" by((("Bitcoin Core", "compiling from source code", "selecting release version", startref="bitcoin-core-compile-release")))((("compiling", "Bitcoin Core from source code", "selecting release version", startref="compile-bitcoin-core-release")))((("source code", "compiling Bitcoin Core", "selecting release version", startref="source-code-compile-release")))((("release version (Bitcoin Core)", "selecting", startref="release-select")))((("selecting", "release version (Bitcoin Core)", startref="select-release"))) issuing
|
||||
You can confirm you have the desired version "checked out" by((("Bitcoin Core", "compiling from source code", "selecting release version", startref="bitcoin-core-compile-release")))((("compiling Bitcoin Core from source code", "selecting release version", startref="compile-bitcoin-core-release")))((("source code", "compiling Bitcoin Core", "selecting release version", startref="source-code-compile-release")))((("release version (Bitcoin Core)", "selecting", startref="release-select")))((("selecting", "release version (Bitcoin Core)", startref="select-release"))) issuing
|
||||
the command +git status+:
|
||||
|
||||
----
|
||||
@ -183,7 +183,7 @@ nothing to commit, working tree clean
|
||||
|
||||
==== Configuring the Bitcoin Core Build
|
||||
|
||||
The((("Bitcoin Core", "compiling from source code", "configuring build", id="bitcoin-core-compile-configure")))((("compiling", "Bitcoin Core from source code", "configuring build", id="compile-bitcoin-core-configure")))((("source code", "compiling Bitcoin Core", "configuring build", id="source-code-compile-configure")))((("configuring", "Bitcoin Core build", id="configure-build"))) source code includes documentation, which
|
||||
The((("Bitcoin Core", "compiling from source code", "configuring build", id="bitcoin-core-compile-configure")))((("compiling Bitcoin Core from source code", "configuring build", id="compile-bitcoin-core-configure")))((("source code", "compiling Bitcoin Core", "configuring build", id="source-code-compile-configure")))((("configuring", "Bitcoin Core build", id="configure-build"))) source code includes documentation, which
|
||||
can be found in a number of files. Review the main documentation located
|
||||
in _README.md_ in the _bitcoin_ directory.
|
||||
In this chapter, we will build the Bitcoin Core daemon
|
||||
@ -288,12 +288,12 @@ terminate with an error instead of creating the build scripts. If an
|
||||
error occurs, it is most likely because of a missing or incompatible
|
||||
library. Review the build documentation again and make sure you install
|
||||
the missing prerequisites. Then run +configure+ again and see if that
|
||||
fixes the((("Bitcoin Core", "compiling from source code", "configuring build", startref="bitcoin-core-compile-configure")))((("compiling", "Bitcoin Core from source code", "configuring build", startref="compile-bitcoin-core-configure")))((("source code", "compiling Bitcoin Core", "configuring build", startref="source-code-compile-configure")))((("configuring", "Bitcoin Core build", startref="configure-build"))) error.
|
||||
fixes the((("Bitcoin Core", "compiling from source code", "configuring build", startref="bitcoin-core-compile-configure")))((("compiling Bitcoin Core from source code", "configuring build", startref="compile-bitcoin-core-configure")))((("source code", "compiling Bitcoin Core", "configuring build", startref="source-code-compile-configure")))((("configuring", "Bitcoin Core build", startref="configure-build"))) error.
|
||||
|
||||
==== Building the Bitcoin Core Executables
|
||||
|
||||
Next, you
|
||||
will ((("Bitcoin Core", "compiling from source code", "building executables", id="bitcoin-core-compile-execute")))((("compiling", "Bitcoin Core from source code", "building executables", id="compile-bitcoin-core-execute")))((("source code", "compiling Bitcoin Core", "building executables", id="source-code-compile-execute")))((("executables (Bitcoin Core)", "building", id="executable-build")))compile the source code, a process that can take up to an hour to
|
||||
will ((("Bitcoin Core", "compiling from source code", "building executables", id="bitcoin-core-compile-execute")))((("compiling Bitcoin Core from source code", "building executables", id="compile-bitcoin-core-execute")))((("source code", "compiling Bitcoin Core", "building executables", id="source-code-compile-execute")))((("executables (Bitcoin Core)", "building", id="executable-build")))compile the source code, a process that can take up to an hour to
|
||||
complete, depending on the speed of your CPU and available memory.
|
||||
If an error
|
||||
occurs, or the compilation process is interrupted, it can be resumed any
|
||||
@ -335,7 +335,7 @@ libtool: install: /usr/bin/install -c bitcoin-tx /usr/local/bin/bitcoin-tx
|
||||
The default installation of +bitcoind+
|
||||
puts it in _/usr/local/bin_. You can confirm that Bitcoin Core is
|
||||
correctly installed by asking the system for the path of the
|
||||
executables, ((("Bitcoin Core", "compiling from source code", startref="bitcoin-core-compile")))((("compiling", "Bitcoin Core from source code", startref="compile-bitcoin-core")))((("source code", "compiling Bitcoin Core", startref="source-code-compile")))((("Bitcoin Core", "compiling from source code", "building executables", startref="bitcoin-core-compile-execute")))((("compiling", "Bitcoin Core from source code", "building executables", startref="compile-bitcoin-core-execute")))((("source code", "compiling Bitcoin Core", "building executables", startref="source-code-compile-execute")))((("executables (Bitcoin Core)", "building", startref="executable-build")))as follows:
|
||||
executables, ((("Bitcoin Core", "compiling from source code", startref="bitcoin-core-compile")))((("compiling Bitcoin Core from source code", startref="compile-bitcoin-core")))((("source code", "compiling Bitcoin Core", startref="source-code-compile")))((("Bitcoin Core", "compiling from source code", "building executables", startref="bitcoin-core-compile-execute")))((("compiling Bitcoin Core from source code", "building executables", startref="compile-bitcoin-core-execute")))((("source code", "compiling Bitcoin Core", "building executables", startref="source-code-compile-execute")))((("executables (Bitcoin Core)", "building", startref="executable-build")))as follows:
|
||||
|
||||
----
|
||||
$ which bitcoind
|
||||
|
Loading…
Reference in New Issue
Block a user