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
{{ message }}
Repository navigation
Commit 4ea7f9a
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -62,6 +62,11 @@ 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 port for connection to the network
66
+
67
+
## Build and Deploy automatically using scripts
68
+
69
+
- Please take a look at the [Tron Deployment Scripts](https://github.com/tronprotocol/TronDeployment) repository.
65
70
66
71
## Getting the code with git
67
72
@@ -126,7 +131,7 @@ cd java-tron
126
131
127
132
* Build in [IntelliJ IDEA](https://www.jetbrains.com/idea/) (community version is enough):
128
133
129
-
**Please run ./gradlew build once to build the protocol files**
134
+
**Please run ./gradlew build once to build the protocol files**
130
135
131
136
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
137
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
149
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**
150
+
* 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)
151
+
152
+
153
+
### Running a Super Representative Node for mainnet
154
+
155
+
* Use the executable JAR(Recommended way)
156
+
157
+
```bash
158
+
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.
165
+
166
+
<details>
167
+
<summary>Correct output</summary>
168
+
169
+
```bash
170
+
171
+
20:43:18.138 INFO [main] [o.t.p.FullNode](FullNode.java:21) Full node running.
172
+
20:43:18.486 INFO [main] [o.t.c.c.a.Args](Args.java:429) Bind address wasn't set, Punching to identify it...
173
+
20:43:18.493 INFO [main] [o.t.c.c.a.Args](Args.java:433) UDP local bound to: 10.0.8.146
174
+
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...
175
+
20:43:19.450 INFO [main] [o.t.c.c.a.Args](Args.java:461) External address identified: 47.74.147.87
176
+
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
177
+
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