Difference between revisions of "Fullnode"
m |
|||
Line 40: | Line 40: | ||
''recommended for Systems less then 4 GB'' | ''recommended for Systems less then 4 GB'' | ||
− | sudo fallocate -l 4G /swapfile | + | |
+ | <code>sudo fallocate -l 4G /swapfile</code> | ||
+ | |||
sudo chmod 600 /swapfile | sudo chmod 600 /swapfile | ||
+ | |||
sudo mkswap /swapfile | sudo mkswap /swapfile | ||
+ | |||
sudo swapon /swapfile | sudo swapon /swapfile | ||
+ | |||
''Check the swapfile'' | ''Check the swapfile'' | ||
+ | |||
sudo swapon --show | sudo swapon --show | ||
''make the Swapfile permanent'' | ''make the Swapfile permanent'' | ||
+ | |||
sudo cp /etc/fstab /etc/fstab.bak | sudo cp /etc/fstab /etc/fstab.bak | ||
+ | |||
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab | echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab | ||
+ | |||
''Optimization'' | ''Optimization'' | ||
+ | |||
sudo sysctl vm.swappiness=10 | sudo sysctl vm.swappiness=10 | ||
+ | |||
sudo nano /etc/sysctl.conf | sudo nano /etc/sysctl.conf | ||
+ | |||
vm.swappiness=10 | vm.swappiness=10 | ||
− | ==== Download latest Fullnode ==== | + | |
+ | ===== Download latest Fullnode ===== | ||
+ | |||
[https://github.com/DeFiCh/ain/releases/latest Latest Version] | [https://github.com/DeFiCh/ain/releases/latest Latest Version] | ||
+ | |||
wget https://github.com/DeFiCh/ain/releases/download/v1.5.0/defichain-1.5.0-x86_64-pc-linux-gnu.tar.gz | wget https://github.com/DeFiCh/ain/releases/download/v1.5.0/defichain-1.5.0-x86_64-pc-linux-gnu.tar.gz | ||
+ | |||
''unzip package'' | ''unzip package'' | ||
+ | |||
tar -xvzf defichain-1.5.0-x86_64-pc-linux-gnu.tar.gz | tar -xvzf defichain-1.5.0-x86_64-pc-linux-gnu.tar.gz | ||
''copy to own directory'' | ''copy to own directory'' | ||
+ | |||
mkdir ~/.defi | mkdir ~/.defi | ||
+ | |||
cp ./defichain-1.5.0/bin/* ~/.defi | cp ./defichain-1.5.0/bin/* ~/.defi | ||
+ | |||
''Start Fullnode'' | ''Start Fullnode'' | ||
+ | |||
~/.defi/defid -daemon | ~/.defi/defid -daemon | ||
+ | |||
''When you upgrade from a previous version, please reindex the wohle blockchaindata'' | ''When you upgrade from a previous version, please reindex the wohle blockchaindata'' | ||
+ | |||
~/.defi/bin/defid -reindex -daemon | ~/.defi/bin/defid -reindex -daemon | ||
+ | |||
''Check Blockcount'' | ''Check Blockcount'' | ||
+ | |||
.defi/bin/defi-cli getblockcount | .defi/bin/defi-cli getblockcount | ||
+ | |||
''Start defid after reboot'' | ''Start defid after reboot'' | ||
+ | |||
sudo crontab -e | sudo crontab -e | ||
+ | |||
* * * * * pidof defid || /home/defichain/.defi/defid | * * * * * pidof defid || /home/defichain/.defi/defid |
Revision as of 10:24, 19 February 2021
Defichain Fullnode
To stabilize the network, it is possible to setup a Defichain Fullnode on a virtual or physical server with a fixed IP address. A Fullnode hold the whole blockchain without acting as a masternode (no Collateral required) and other Nodes and Wallets in the network can use it to synchronize. Everyone in the community can help make the network more stable with a public Fullnode.
Requirements
General
- Fixed IP-Address
- Port Forwarding enabled on Router (Port 8555)
- 24/7 online
- Stable Internetconnection (Upload)
Hardware
- 100 GB free disk space (SSD recommended)
- 2-4 vCPU
- 4 GB Memory
Software
- Debian 19, 64 Bit
- Ubuntu 16.04 LTS
- Ubuntu 18.04
List of Fullnodes
- 45.157.177.82:8555
- 185.244.194.174:8555
- ...
- ...
- ...
to be continued...
Fullnode Installation
Ubuntu 16.04/18.04/20.04
Create Swapfile
recommended for Systems less then 4 GB
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
Check the swapfile
sudo swapon --show
make the Swapfile permanent
sudo cp /etc/fstab /etc/fstab.bak
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Optimization
sudo sysctl vm.swappiness=10
sudo nano /etc/sysctl.conf
vm.swappiness=10
Download latest Fullnode
wget https://github.com/DeFiCh/ain/releases/download/v1.5.0/defichain-1.5.0-x86_64-pc-linux-gnu.tar.gz
unzip package
tar -xvzf defichain-1.5.0-x86_64-pc-linux-gnu.tar.gz
copy to own directory
mkdir ~/.defi
cp ./defichain-1.5.0/bin/* ~/.defi
Start Fullnode
~/.defi/defid -daemon
When you upgrade from a previous version, please reindex the wohle blockchaindata
~/.defi/bin/defid -reindex -daemon
Check Blockcount
.defi/bin/defi-cli getblockcount
Start defid after reboot
sudo crontab -e
- * * * * pidof defid || /home/defichain/.defi/defid