# Installation
# What is gvite node?
In Vite network, nodes are categorized into full nodes and supernodes. Supernode is special full nodes for producing snapshot blocks. This document mainly introduces full node.
Full node is responsible for maintaining a complete copy of ledger, sending or receiving transactions, and verifying all transactions in the network. Full node can also participate in SBP election and voting. Full node exposes HTTP/WEBSOCKET APIs externally and has a command line console at local.
# Before the start
Gvite supports installation from binary or source code
OS | ubuntu | mac | windows |
---|---|---|---|
Yes | Yes | Yes |
# Install from binary
Download latest gvite installation package at gvite Releases (opens new window) in command line then install
# Installation example on ubuntu
Check the content of gvite.log in the same folder to determine whether the program is up and running.
The following messages indicate boot is successful.
# Installation example on mac
Check the content of gvite.log in the same folder to determine whether the program is up and running.
The following messages indicate boot is successful.
# Installation example on windows
Open up your preferred browser and paste in the following link:
and save file to preferred directory. Upon download completion, open up explorer, navigate to the directory where file is downloaded to, right click file and select extract file option.
Extracted destination should contain three files:
gvite-windows-386.exe (32bit executable)
gvite-windows-amd64.exe (64bit executable)
node_config.json (node config file).
The folder contains the command .exe files and can be used without installing.
Configure node_config.json
prior to launching executable (use the 32bit executable if you have a 32bit CPU or 64bit executable if you have a 64bit CPU).
To launch node, simply open up command prompt (by pressing Win + R, then, type cmd and press Enter or click/tap OK.)
Then in command prompt:
The following messages indicate boot is successful.
# Description of installation directory
Installation Directory:Refers to the folder where gvite boot script and configuration file are located. For example, ~/gvite-${version}-${os}
is an installation directory.
gvite
: Gvite executable filebootstrap
: Boot scriptnode_config.json
: Configuration file. See Configuration Description
# Ports
The default ports are 8483/8484. If you choose to go with default ports, please ensure that they are not occupied by other programs or blocked by firewall.
Check if the default ports are occupied. Gvite will display the following messages if it boots up successfully.
# Description of working directory
Gvite working directory, containing sub-directories/files such as "ledger", "ledger_files", "LOCK", "p2p", "rpclog", "runlog" and "wallet".
ledger
: Ledger directoryrpclog
: RPC log directoryrunlog
: Run-time log directorywallet
: Wallet keystore directory for storing keystore files that secure private keys. Do remember KEEP YOUR PRIVATE KEY SAFE.
# Install from source
# Golang environment check
Go 1.11.1 or above version is required. See Go Installation Guide (opens new window).
# Compile source code
Pull gvite source code
and will be downloaded at:
The system default GOPATH
is ~/go
Go to the source code directory and run
Executable file is generated at:
# Configuration file
node_config.json
is gvite configuration file. It should reside in the same directory with gvite executables. Details can be found at: Config Description
# Boot script
Taking Linux as example, the script has the following content:
# Monitoring
# Query snapshot block height in command line
Start a full node as instructed above
Connect to gvite command line console: Navigate to Full Node Installation Directory and execute the following command
Linux/Unix:
Windows:
The following result will be displayed:
51821203 is current block height.
For more information please run command
vite.help
.
# Full node rewards
In Vite, rewards will be distributed to full node owners as incentives.
# Node configuration
Additional settings in node_config.json
are required:
- Set full node stats URL:
"DashboardTargetURL": "wss://stats.vite.net"
- Add "dashboard" to
PublicModules
- Set
"RewardAddr": "${your_address}"
to receive full node reward
The modified part of node_config.json is as below(please note this is not the full config file):
# Node status check
Reboot full node, then visit Vite Explorer (opens new window) to examine if your node has shown up correctly (result will reflect in 5 minutes). Scroll to filter box and input your node name from above.