You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TRON is a project dedicated to building the infrastructure for a truly decentralized Internet.
57
57
58
-
* Tron Protocol, one of the largest blockchain-based operating systems in the world, offers scalable, high-availability and high-throughput support that underlies all the decentralized applications in the TRON ecosystem.
58
+
- Tron Protocol, one of the largest blockchain-based operating systems in the world, offers scalable, high-availability and high-throughput support that underlies all the decentralized applications in the TRON ecosystem.
59
59
60
-
* Tron Virtual Machine (TVM) allows anyone to develop decentralized applications (DAPPs) for themselves or their communities with smart contracts thereby making decentralized crowdfunding and token issuance easier than ever.
60
+
- Tron Virtual Machine (TVM) allows anyone to develop decentralized applications (DAPPs) for themselves or their communities with smart contracts thereby making decentralized crowdfunding and token issuance easier than ever.
61
61
62
62
TRON enables large-scale development and engagement. With over 2000 transactions per second (TPS), high concurrency, low latency, and massive data transmission. It is ideal for building decentralized entertainment applications. Free features and incentive systems allow developers to create premium app experiences for users.
63
63
64
64
# Building the source
65
+
65
66
Building java-tron requires `git` and 64-bit version of `Oracle JDK 1.8` to be installed, other JDK versions are not supported yet. Make sure you operate on `Linux` and `MacOS` operating systems.
then run the following command to build java-tron, the `FullNode.jar` file can be found in `java-tron/build/libs/` after build successful.
77
+
75
78
```bash
76
79
$ ./gradlew clean build -x test
77
80
```
78
81
79
-
80
82
# Running java-tron
83
+
81
84
Running java-tron requires 64-bit version of `Oracle JDK 1.8` to be installed, other JDK versions are not supported yet. Make sure you operate on `Linux` and `MacOS` operating systems.
82
85
83
-
Get the mainnet configuration file: [main_net_config.conf](https://github.com/tronprotocol/tron-deployment/blob/master/main_net_config.conf), other network configuration files can be find [here](https://github.com/tronprotocol/tron-deployment).
86
+
Get the mainnet configuration file: [main_net_config.conf](https://github.com/tronprotocol/tron-deployment/blob/master/main_net_config.conf), other network configuration files can be found [here](https://github.com/tronprotocol/tron-deployment).
87
+
84
88
## Hardware Requirements
89
+
85
90
Minimum:
86
-
* CPU with 8 cores
87
-
* 16GB RAM
88
-
* 2TB free storage space to sync the Mainnet
91
+
92
+
- CPU with 8 cores
93
+
- 16GB RAM
94
+
- 2TB free storage space to sync the Mainnet
89
95
90
96
Recommended:
91
-
* CPU with 16+ cores(32+ cores for a super representative)
92
-
* 32GB+ RAM(64GB+ for a super representative)
93
-
* High Performance SSD with at least 2.5TB free space
94
-
* 100+ MB/s download Internet service
95
97
98
+
- CPU with 16+ cores(32+ cores for a super representative)
99
+
- 32GB+ RAM(64GB+ for a super representative)
100
+
- High Performance SSD with at least 2.5TB free space
101
+
- 100+ MB/s download Internet service
96
102
97
103
## Running a full node for mainnet
98
-
Full node has full historical data, it is the entry point into the TRON network , it can be used by other processes as a gateway into the TRON network via HTTP and GRPC endpoints. You can interact with the TRON network through full node:transfer assets, deploy contracts, interact with contracts and so on. `-c ` parameter specifies a configuration file to run a full node:
Full node has full historical data, it is the entry point into the TRON network , it can be used by other processes as a gateway into the TRON network via HTTP and GRPC endpoints. You can interact with the TRON network through full node:transfer assets, deploy contracts, interact with contracts and so on. `-c` parameter specifies a configuration file to run a full node:
## Running a super representative node for mainnet
111
-
Adding the `--witness` parameter to the startup command, full node will run as a super representative node. The super representative node supports all the functions of the full node and also supports block production. Before running, make sure you have a super representative account and get votes from others,once the number of obtained votes ranks in the top 27, your super representative node will participate in block production.
112
120
113
-
Fill in the private key of super representative address into the `localwitness` list in the `main_net_config.conf`, here is an example:
Adding the `--witness` parameter to the startup command, full node will run as a super representative node. The super representative node supports all the functions of the full node and also supports block production. Before running, make sure you have a super representative account and get votes from others. Once the number of obtained votes ranks in the top 27, your super representative node will participate in block production.
122
+
123
+
Fill in the private key of super representative address into the `localwitness` list in the `main_net_config.conf`. Here is an example:
An easier way to build and run java-tron is to use `start.sh`, `start.sh` is a quick start script written in shell language, you can use it to build and run java-tron quickly and easily.
146
+
147
+
An easier way to build and run java-tron is to use `start.sh`. `start.sh` is a quick start script written in the Shell language. You can use it to build and run java-tron quickly and easily.
135
148
136
149
Here are some common use cases of the scripting tool
137
-
* Use `start.sh` to start a full node with the downloaded `FullNode.jar`
138
-
* Use `start.sh` to download the latest `FullNode.jar` and start a full node.
139
-
* Use `start.sh` to download the latest source code and compile a `FullNode.jar` and then start a full node.
150
+
151
+
- Use `start.sh` to start a full node with the downloaded `FullNode.jar`
152
+
- Use `start.sh` to download the latest `FullNode.jar` and start a full node.
153
+
- Use `start.sh` to download the latest source code and compile a `FullNode.jar` and then start a full node.
140
154
141
155
For more details, please refer to the tool [guide](./shell.md).
142
156
143
157
## Run inside Docker container
144
158
145
159
One of the quickest ways to get `java-tron` up and running on your machine is by using Docker:
@@ -155,29 +170,35 @@ $ docker run -d --name="java-tron" \
155
170
This will mount the `output-directory` and `logs` directories on the host, the docker.sh tool can also be used to simplify the use of docker, see more [here](docker/docker.md).
156
171
157
172
# Community
173
+
158
174
[Tron Developers & SRs](https://discord.gg/hqKvyAM) is Tron's official Discord channel. Feel free to join this channel if you have any questions.
159
175
160
176
[Core Devs Community](https://t.me/troncoredevscommunity) is the Telegram channel for java-tron community developers. If you want to contribute to java-tron, please join this channel.
161
177
162
178
[tronprotocol/allcoredev](https://gitter.im/tronprotocol/allcoredev) is the official Gitter channel for developers.
163
179
164
180
# Contribution
165
-
Thank you for considering to help out with the source code! If you'd like to contribute to java-tron, please see the [Contribution Guide](./CONTRIBUTING.md) for more details.
166
181
182
+
Thank you for considering to help out with the source code! If you'd like to contribute to java-tron, please see the [Contribution Guide](./CONTRIBUTING.md) for more details.
167
183
168
184
# Resources
169
-
*[Medium](https://medium.com/@coredevs) java-tron's official technical articles are published there.
170
-
*[Documentation](https://tronprotocol.github.io/documentation-en/introduction/) java-tron's official technical documentation website.
171
-
*[Test network](http://nileex.io/) A stable test network of TRON contributed by TRON community.
172
-
*[Tronscan](https://tronscan.org/#/) TRON network blockchain browser.
173
-
*[Wallet-cli](https://github.com/tronprotocol/wallet-cli) TRON network wallet using command line.
174
-
*[TIP](https://github.com/tronprotocol/tips) TRON Improvement Proposal (TIP) describes standards for the TRON network.
175
-
*[TP](https://github.com/tronprotocol/tips/tree/master/tp) TRON Protocol (TP) describes standards already implemented in TRON network but not published as a TIP.
185
+
186
+
-[Medium](https://medium.com/@coredevs) java-tron's official technical articles are published there.
187
+
-[Documentation](https://tronprotocol.github.io/documentation-en/introduction/) java-tron's official technical documentation website.
188
+
-[Test network](http://nileex.io/) A stable test network of TRON contributed by TRON community.
189
+
-[Tronscan](https://tronscan.org/#/) TRON network blockchain browser.
190
+
-[Wallet-cli](https://github.com/tronprotocol/wallet-cli) TRON network wallet using command line.
191
+
-[TIP](https://github.com/tronprotocol/tips) TRON Improvement Proposal (TIP) describes standards for the TRON network.
192
+
-[TP](https://github.com/tronprotocol/tips/tree/master/tp) TRON Protocol (TP) describes standards already implemented in TRON network but not published as a TIP.
193
+
176
194
# Integrity Check
177
-
* After January 3, 2023, releases are signed the gpg key:
195
+
196
+
- After January 3, 2023, the release files will be signed using a GPG key pair, and the correctness of the signature will be verified using the following public key:
0 commit comments