Tron Node / DONE
Tron Node reconfiguring:
The documentation is described for installation on a pure VDS without any third-party software or other programmes, please take this into account when installing.
Install the necessary packages:
Install Docker according to the official documentationhttps://docs.docker.com/engine/install/#server
Clone the repository with the docker image:
Go to the directory with the project
Create a configuration file and set the required contract addresses and event tops: (not obligatory, but recommended so as not to process unnecessary transactions).
configuration example for processing only USDT events
Create a folder for this node
Download Lite version of node data from open source(http://34.143.247.77/) (documentation)
Unzip the archive (folder
output-directory)
в~/docker-java-tron/data/node/
Delete the archive with the Lite data
Now our Tron node is ready to go live
Launch Node
Go to the project directory:
Launch Tron node
How to add another contract address
You have to go into the configuration:
Add another address to the
EVENT_PLUGIN_ADDRESS_FILTER
block by separating the contract addresses with a comma character , and do not use line breaks or spaces between addresses. USDT + USDC Example:
Clearing node data:
By default we have set 5 days of data storage which you can synchronise
If you want to change this parameter you need to add a different number of days to your configuration
You have to go into the configuration
Add a line with your value:
How to get logs from node:
Opening an access port:
Create proxy from ports
- localhost:8080 to port 2080 for EventServer
- localhost:18090 to port 2090 for fullNode
- localhost:18091 to port 2091 for solidityNode
Accesses
EventServer: http://ip.host:2080
Node: http://ip.host:2090
Solidity: http://ip.host:2091
How to update a tron-node container.
Update the version in the .env file https://github.com/tronprotocol/java-tron/releases
Rebuild docker and restart the node:
Last updated