Difference between revisions of "Fullnode"
Line 43: | Line 43: | ||
<code>sudo fallocate -l 4G /swapfile</code> | <code>sudo fallocate -l 4G /swapfile</code> | ||
− | sudo chmod 600 /swapfile | + | <code>sudo chmod 600 /swapfile</code> |
− | sudo mkswap /swapfile | + | <code>sudo mkswap /swapfile</code> |
− | sudo swapon /swapfile | + | <code>sudo swapon /swapfile</code> |
''Check the swapfile'' | ''Check the swapfile'' | ||
− | sudo swapon --show | + | <code>sudo swapon --show</code> |
+ | |||
''make the Swapfile permanent'' | ''make the Swapfile permanent'' | ||
− | sudo cp /etc/fstab /etc/fstab.bak | + | <code>sudo cp /etc/fstab /etc/fstab.bak</code> |
− | echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab | + | <code>echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab</code> |
''Optimization'' | ''Optimization'' | ||
− | sudo sysctl vm.swappiness=10 | + | <code>sudo sysctl vm.swappiness=10</code> |
− | sudo nano /etc/sysctl.conf | + | <code>sudo nano /etc/sysctl.conf</code> |
− | vm.swappiness=10 | + | <code>vm.swappiness=10</code> |
Line 74: | Line 75: | ||
[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 | + | <code>wget https://github.com/DeFiCh/ain/releases/download/v1.5.0/defichain-1.5.0-x86_64-pc-linux-gnu.tar.gz</code> |
''unzip package'' | ''unzip package'' | ||
− | tar -xvzf defichain-1.5.0-x86_64-pc-linux-gnu.tar.gz | + | <code>tar -xvzf defichain-1.5.0-x86_64-pc-linux-gnu.tar.gz</code> |
− | ''copy to | + | ''copy to directory'' |
− | mkdir ~/.defi | + | <code>mkdir ~/.defi</code> |
− | cp ./defichain-1.5.0/bin/* ~/.defi | + | <code>cp ./defichain-1.5.0/bin/* ~/.defi</code> |
''Start Fullnode'' | ''Start Fullnode'' | ||
− | ~/.defi/defid -daemon | + | <code>~/.defi/defid -daemon</code> |
''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 | + | <code>~/.defi/bin/defid -reindex -daemon</code> |
''Check Blockcount'' | ''Check Blockcount'' | ||
− | .defi/bin/defi-cli getblockcount | + | <code>.defi/bin/defi-cli getblockcount</code> |
''Start defid after reboot'' | ''Start defid after reboot'' | ||
− | sudo crontab -e | + | <code>sudo crontab -e</code> |
* * * * * pidof defid || /home/defichain/.defi/defid | * * * * * pidof defid || /home/defichain/.defi/defid |
Revision as of 10:26, 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 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