Liteserver Node
Read about Full Node before this article
When an endpoint is activated in a full node, the node assumes the role of a Liteserver. This node type can field and respond to requests from Lite Clients, allowing for seamless interaction with the TON Blockchain.
Hardware requirements
Compared to a validator, a liteserver mode requires less resources. However, it is still recommended to use a powerful machine to run a liteserver.
- at least 16 cores CPU
- at least 128 GB RAM
- at least 1TB GB NVMe SSD OR Provisioned 64+k IOPS storage
- 1 Gbit/s network connectivity
- 16 TB/month traffic on peak load
- public IP address (fixed IP address)
Recommended Providers
Feel free to use cloud providers listed in the Recommended Providers section.
Hetzner and OVH are forbidden to run a validator, but you can use them to run a liteserver:
- Hetzner: EX101, AX102
- OVH: RISE-4
Installation of liteserver
If you don't have mytonctrl, install it with -m liteserver
flag:
- Ubuntu
- Debian
wget https://raw.githubusercontent.com/ton-blockchain/mytonctrl/master/scripts/install.sh
sudo bash ./install.sh -m liteserver
wget https://raw.githubusercontent.com/ton-blockchain/mytonctrl/master/scripts/install.sh
su root -c 'bash ./install.sh -m liteserver'
-d
- mytonctrl will download a dump of the latest blockchain state. This will reduce synchronization time by several times.-c <path>
- If you want to use not public liteservers for synchronization. (not required)-i
- Ignore minimum requirements, use it only if you want to check compilation process without real node usage.-m
- Mode, can bevalidator
orliteserver
.
To use testnet, -c
flag should be provided with https://ton.org/testnet-global.config.json
value.
Default -c
flag value is https://ton-blockchain.github.io/global.config.json
, which is default mainnet config.
If you already have mytonctrl installed, run:
user@system:~# mytonctrl
MyTonCtrl> enable_mode liteserver
Check the firewall settings
First, verify the Liteserver port specified in your /var/ton-work/db/config.json
file. This port changes with each new installation of MyTonCtrl
. It is located in the port
field:
{
...
"liteservers": [
{
"ip": 1605600994,
"port": LITESERVER_PORT
...
}
]
}