Become a Lite Node
Configure config.json
To set up your Lite Node, you need to configure the config.json file, which defines the network parameters for your node.
Step 1: Open the config.json
File is located in the inery.setup/tools/ directory, open it using a text editor like nano:
nano tools/config.json
Step 2: Locate the "LITE_NODE" section
Replace the placeholder YOUR_DNS_OR_IP
values with the actual IP or DNS address of your server:
"LITE_NODE" : {
"PEER_ADDRESS" : "YOUR_DNS_OR_IP:9010",
"HTTP_ADDRESS": "0.0.0.0:8888",
"HOST_ADDRESS": "0.0.0.0:9010"
}
- PEER_ADDRESS: Replace IP with the actual IP or DNS address of your Lite Node server.
- HTTP_ADDRESS: Defines the HTTP server address for the node’s API (default: 0.0.0.0:8888).
- HOST_ADDRESS: Specifies the network address for the node (default: 0.0.0.0:9010).
Step 3: Save your changes
If you used nano editor like in above example you can commit changes typing :
- Press Ctrl + S to save.
- Type Y to confirm.
- Press Ctrl + X to exit.
Start Lite Node
After configuring the config.json file, from the inery-setup directory you can now start the Inery Testnet protocol as Lite Node using the ine.py
script with --lite
option.
./ine.py --lite
==================================================
Creating lite node
==================================================
==================================================
* STARTING LITE *
==================================================
Verify Protocol Started Successfully
To verify if the protocol started successfully, you can monitor the nodine.log file for synchronization activity. This log file contains detailed information about the node's operations and network connections.
tail -f lite.node/blockchain/nodine.log
info 2024-10-11T14:23:56.194 net-1 net_plugin.cpp:1491 operator() ] requesting range 3602 to 3701, from kis.blockchain-servers.world:9010 - a19a16a
info 2024-10-11T14:23:56.403 net-1 net_plugin.cpp:1491 operator() ] requesting range 3702 to 3801, from tas.blockchain-servers.world:9010 - e9168ad
info 2024-10-11T14:23:56.746 net-0 net_plugin.cpp:1491 operator() ] requesting range 3802 to 3901, from sys.blockchain-servers.world:9010 - 9cf529
This output indicates that the ledger is replaying the block history correctly. To start integrating with the network, wait until the ledger is fully synchronized with the current block number. Depending on the last irreversible block in the ledger, the number of peers, and your internet bandwidth, the synchronization process can take anywhere from a few hours to several days to become a fully operational Lite Full Node.