SegWit2x Client Installation Tutorial

SegWit2x Client Installation Tutorial

According to the roadmap of the New York Consensus, SegWit2x has now entered the testing phase. The development of SewWit2x is personally handled by Jeff Garzik. Jeff is also calling on everyone to test SegWit2x. The project address of SegWit2x is: https://github.com/btc1/bitcoin.

The purpose of this article is to allow readers to install the SegWit2x version of the client as quickly as possible and test it (run testnet5). This article uses the Ubuntu operating system as an example.

Source code download

Currently, SegWit2x has not released an executable file, and you can only compile the source code yourself for installation. The source code also has two versions: releases and git version library.
The releases version can be downloaded directly from the address: https://github.com/btc1/bitcoin/releases, where you can view the latest releases and historical releases of SeWit2x.
You can use the wget command to download the release code on Ubuntu. The command to download version 1.14.1rc2 is:

wget https://codeload.github.com/btc1/bitcoin/tar.gz/v1.14.1rc2

After downloading, unzip the command:

tar -xzvf v1.14.1rc2

If you do not want to use the release version, you can directly clone the code under development in the git repository. The cloning command is:

git clone [email protected]:btc1/bitcoin.git

Note that the code for SegWit2x is committed on segwit2x , not on the master branch. The command to switch the git branch is:

git checkout segwit2x

Dependency library installation

To compile the source code, you need to install the corresponding dependent libraries first. In Ubuntu, you can directly use the command line to install the dependent libraries. This article only takes the installation of bitcoind as an example, and does not include the installation of bitcoin-qt and wallet.
Install dependent libraries:

sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils

Install boost dependencies:

sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev

Install the boost development package:

sudo apt-get install libboost-all-dev

Compiling the source code

Enter the SegWit2x directory and run the autogen.sh command:

./autogen.sh

After the above command is completed, run the configure command and specify that the graphical interface and wallet are not included:

./configure –without-gui –disable-wallet

Run the compilation command directly:

make && make check

Install the SegWit2x version of bitcoind to the system:

sudo make install

Now that SewWit2x's bitcoind is available in the system, you can run it directly.

Run testnet5

SegWit2x runs on the test network testnet5 . The SegWit2x client has changed -testnet to testnet5 . After the SegWit2x client is successfully installed, you can directly run the test network command to run on testnet5. Run the test network command:

bitcoind -testnet –daemon

You can use the bitcoin-cli command to check the current node's operation status. You need to add -testnet :

bitcoin-cli -testnet getinfo

In addition, the data of SegWit2x is placed in the directory ~/.bitcoin/testnet5 . You can browse the data related to SegWit2x at https://testnet5.blockchain.info/.
The script used in this article can be obtained from https://github.com/jjz/script/blob/master/segwit2x_install.sh.

<<:  The future of Bitcoin will be determined by community consensus

>>:  Incredible rhythm! In Japan, you can use Alipay and WeChat to pay Bitcoin

Recommend

What are the facial features of a kind woman?

Kind people are the cutest. In fact, we can tell ...

Facial features that make you more likely to get rich

Facial features that make you more likely to get ...

What are the facial features of a woman who loses money?

What are the facial features of a woman who loses...

What problems and difficulties do people with black foreheads usually encounter?

From our general perspective, we will find that i...

How to read face

The so-called "physiognomy" is a kind o...

What is a prosperous husband?

The phase that brings prosperity to the husband i...

ETC, EOS and other old coins led the rise, while Bitcoin was sluggish

In the past 24 hours, the overall crypto market h...

How to tell the facial features of a good wife and mother

Most men hope to find a woman who is a good wife ...

Men with thin lips may have bad relationships with others

There is a saying among the people that a person&...

Look at the shape of your feet to see if you are destined to be rich

Three types of feet explained Human feet can be d...

Is it true that women with more crow's feet have better luck in love?

If a woman has a relatively strong peach blossom ...

Is the mole on the back of the neck a sad mole? Is a sad mole good?

Is the mole on the back of the neck a sad mole? I...