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
@@ -62,6 +62,12 @@ TRON Protocol and the Tron Virtual Machine (TVM) allow anyone to develop decentr
62
62
63
63
* JDK 1.8 (JDK 1.9+ are not supported yet)
64
64
* On Linux Ubuntu system (e.g. Ubuntu 16.04.4 LTS), ensure that the machine has [__Oracle JDK 8__](https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04), instead of having __Open JDK 8__ in the system. If you are building the source code by using __Open JDK 8__, you will get [__Build Failed__](https://github.com/tronprotocol/java-tron/issues/337) result.
65
+
* Open **UDP** ports for connection to the network
66
+
***MINIMUM** 2 ENERGY Cores
67
+
68
+
## Build and Deploy automatically using scripts
69
+
70
+
- Please take a look at the [Tron Deployment Scripts](https://github.com/tronprotocol/TronDeployment) repository.
65
71
66
72
## Getting the code with git
67
73
@@ -126,7 +132,7 @@ cd java-tron
126
132
127
133
* Build in [IntelliJ IDEA](https://www.jetbrains.com/idea/) (community version is enough):
128
134
129
-
**Please run ./gradlew build once to build the protocol files**
135
+
**Please run ./gradlew build once to build the protocol files**
130
136
131
137
1. Start IntelliJ. Select `File` -> `Open`, then locate to the java-tron folder which you have git cloned to your local drive. Then click `Open` button on the right bottom.
132
138
2. Check on `Use auto-import` on the `Import Project from Gradle` dialog. Select JDK 1.8 in the `Gradle JVM` option. Then click `OK`.
## Running a local node and connecting to the public testnet
144
150
145
-
* Ensure that the version number is consistent with the version number of the test network. If it is not consistent, please modify the node.p2p.version in the config.conf file and delete the out-directory directory (if it exists).
146
-
* The current p2p.version is **619**
151
+
* Use the [Testnet Config](https://github.com/tronprotocol/TronDeployment/blob/master/test_net_config.conf) or use the [Tron Deployment Scripts](https://github.com/tronprotocol/TronDeployment)
152
+
153
+
154
+
### Running a Super Representative Node for mainnet
155
+
156
+
* Use the executable JAR(Recommended way)
157
+
158
+
```bash
159
+
java -jar FullNode.jar -p your private key --witness -c your config.conf(Example:/data/java-tron/config.conf)
This is similar to running a private testnet, except that the IPs in the `config.conf` are officially declared by TRON.
166
+
167
+
<details>
168
+
<summary>Correct output</summary>
169
+
170
+
```bash
171
+
172
+
20:43:18.138 INFO [main] [o.t.p.FullNode](FullNode.java:21) Full node running.
173
+
20:43:18.486 INFO [main] [o.t.c.c.a.Args](Args.java:429) Bind address wasn't set, Punching to identify it...
174
+
20:43:18.493 INFO [main] [o.t.c.c.a.Args](Args.java:433) UDP local bound to: 10.0.8.146
175
+
20:43:18.495 INFO [main] [o.t.c.c.a.Args](Args.java:448) External IP wasn't set, using checkip.amazonaws.com to identify it...
176
+
20:43:19.450 INFO [main] [o.t.c.c.a.Args](Args.java:461) External address identified: 47.74.147.87
177
+
20:43:19.599 INFO [main] [o.s.c.a.AnnotationConfigApplicationContext](AbstractApplicationContext.java:573) Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@124c278f: startup date [Fri Apr 27 20:43:19 CST 2018]; root of context hierarchy
178
+
20:43:19.972 INFO [main] [o.s.b.f.a.AutowiredAnnotationBeanPostProcessor](AutowiredAnnotationBeanPostProcessor.java:153) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
This is similar to running a private testnet, except that the IPs in the `config.conf` are officially declared by TRON.
302
-
303
-
<details>
304
-
<summary>Correct output</summary>
305
-
306
-
```bash
307
-
308
-
20:43:18.138 INFO [main] [o.t.p.FullNode](FullNode.java:21) Full node running.
309
-
20:43:18.486 INFO [main] [o.t.c.c.a.Args](Args.java:429) Bind address wasn't set, Punching to identify it...
310
-
20:43:18.493 INFO [main] [o.t.c.c.a.Args](Args.java:433) UDP local bound to: 10.0.8.146
311
-
20:43:18.495 INFO [main] [o.t.c.c.a.Args](Args.java:448) External IP wasn't set, using checkip.amazonaws.com to identify it...
312
-
20:43:19.450 INFO [main] [o.t.c.c.a.Args](Args.java:461) External address identified: 47.74.147.87
313
-
20:43:19.599 INFO [main] [o.s.c.a.AnnotationConfigApplicationContext](AbstractApplicationContext.java:573) Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@124c278f: startup date [Fri Apr 27 20:43:19 CST 2018]; root of context hierarchy
314
-
20:43:19.972 INFO [main] [o.s.b.f.a.AutowiredAnnotationBeanPostProcessor](AutowiredAnnotationBeanPostProcessor.java:153) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
0 commit comments