Difference between revisions of "Fullnode"

From DeFiChain-Wiki
(Created page with "== 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 w...")
 
m
Line 33: Line 33:
 
to be continued...
 
to be continued...
  
=== Fullnode Installation ===
+
== Fullnode Installation ==
  
 
==== Ubuntu 16.04/18.04/20.04 ====
 
==== Ubuntu 16.04/18.04/20.04 ====

Revision as of 12:16, 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

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

Latest Version 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