HOW TO SETUP A BITCOIN LIGHTNING NETWORK TESTNET NODE ON CENTOS 7
- Category : Server Administration
- Posted on : Sep 14, 2017
- Views : 2,913
- By : Naftali P.
Bitcoin is the currency of the Internet. Not only it was the first cryptocurrency, pioneering concepts such as blockchain, but it was resiliently stayed as the most widely used one.
However, certain challenges have come up in Bitcoin’s horizons lately. One of those challenges is the speed at which transactions are completed when volume is high.
Simply put, Bitcoin wasn’t designed for sheer volumes of transactions that also need to be verified instantly. In other words, its potential for becoming a means of payment for transactions that require instant verification is limited. Unless, of course, an alternative way of handling instant verification transactions is adopted.
Bitcoin’s Lightning Network is that ‘alternative way’ that we were waiting for.
Lightning network introduces a ‘second layer’ payment protocol that allows for transactions to be conducted instantly in a different layer, and then added later to the main blockchain.
The significance of this technology is quite massive. It will lead to decreased congestion, lower fees, and it will represent an important challenge to many altcoins whose only comparative advantage with regards to Bitcoin is faster transactions.
In today’s post, we will show you how to set up a Lightning Network node on the testnet. We will be using a CentOS 7 server, as per usual.
To start, let us install all the needed dependencies using the following command-
yum install -y autoconf automake build-essential git libtool libgmp-dev libsqlite3-dev python python3 net-tools libsodium-dev
You will see a console message like this one once the installation is complete:
Now, we will install OpenSSL using the following commands-
- cd /usr/src
- wget https://www.openssl.org/source/openssl-1.0.1l.tar.gz
- tar zxvf openssl-1.0.1l.tar.gz
- cd openssl-1.0.1l
- export CFLAGS=”-fPIC”
- ./config –prefix=/opt/openssl shared enable-ec enable-ecdh enable-ecdsa
- make all
- make install
This will take a while. After this we can download, build and install Bitcoin core using the following list of commands. We will be installing Bitcoin version 0.9.4 in this example
- cd /usr/src
- wget https://github.com/bitcoin/bitcoin/archive/v0.9.4.tar.gz
- tar zxvf v0.9.4.tar.gz
- cd bitcoin-0.9.4
- ./autogen.sh
- ./configure –prefix=/opt/bitcoin PKG_CONFIG_PATH=/opt/openssl/lib/pkgconfig LIBS=-Wl,-rpath,/opt/openssl/lib
- make
- make install
This completes our initial setup.
For running tests, you can get additional dependencies using the following command-
yum install -y asciidoc valgrind python3-pip
Next, you can clone the Lightning project using the following command-
git clone https://github.com/ElementsProject/lightning.git
Build this using the following commands-
- cd lightning
- make
Before you start Lightning, first make sure you do not have walletbroadcast=0 in your ~/.bitcoin/bitcoin.conf file.
Now, you can start bicoind using the following command-
bitcoind -daemon -testnet
Wait until bitcoind has synchronized with the testnet network. Once this is completed, you can start lightningd using the following command-
lightningd/lightningd –network=testnet –log-level=debug
You can list all the commands needed using- cli/lightning-cli help
That is it. You now have a Lightning Network node running on the testnet!
Categories
- cPanel Question 47
- cPanel Software Management 29
- cPanel Tutorials 13
- Development 29
- Domain 13
- General 19
- Linux Helpline (Easy Guide) 156
- Marketing 47
- MySQL Question 13
- News 2
- PHP Configuration 14
- SEO 4
- SEO 42
- Server Administration 84
- SSL Installation 54
- Tips and Tricks 24
- VPS 3
- Web Hosting 44
- Website Security 22
- WHM questions 13
- WordPress 148
Subscribe Now
10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!Archive Calendar
Sat | Sun | Mon | Tue | Wed | Thu | Fri |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
Recent Articles
-
Posted on : Sep 17
-
Posted on : Sep 10
-
Posted on : Aug 04
-
Posted on : Apr 01
Tags
- ts
- myisam
- vpn
- sql
- process
- kill
- tweak
- server load
- attack
- ddos mitigation
- Knowledge
- layer 7
- ddos
- webmail
- DMARC
- Development
- nginx
- seo vpn
- Hosting Security
- wireguard
- innodb
- exim
- smtp relay
- smtp
- VPS Hosting
- cpulimit
- Plesk
- Comparison
- cpu
- encryption
- WHM
- xampp
- sysstat
- optimize
- cheap vpn
- php-fpm
- mariadb
- apache
- Small Business
- Error
- Networking
- VPS
- SSD Hosting
- Link Building
- centos
- DNS
- optimization
- ubuntu