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 3d4858d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+3-271Lines changed: 3 additions & 271 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,278 +61,10 @@ TRON enables large-scale development and engagement. With over 2000 transactions
61
61
TRON Protocol and the Tron Virtual Machine (TVM) allow anyone to develop decentralized applications (DAPPs) for themselves or their communities with smart contracts thereby making decentralized crowdfunding and token issuance easier than ever.
* 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.
69
-
* Open **UDP** ports for connection to the network
70
-
***MINIMUM** 2 ENERGY Cores
71
-
72
-
## Build and Deploy automatically using scripts
73
-
74
-
- Please take a look at the [Tron Deployment Scripts](https://github.com/tronprotocol/TronDeployment) repository.
75
-
76
-
## Getting the code with git
77
-
78
-
* Use Git from the Terminal, see the [Setting up Git](https://help.github.com/articles/set-up-git/) and [Fork a Repo](https://help.github.com/articles/fork-a-repo/) articles.
* For Mac, you can also install **[GitHub for Mac](https://mac.github.com/)** then **[fork and clone our repository](https://guides.github.com/activities/forking/)**.
88
-
89
-
* If you'd rather not use Git, [Download the ZIP](https://github.com/tronprotocol/java-tron/archive/develop.zip)
90
-
91
-
## Including java-tron as dependency
92
-
93
-
* If you don't want to checkout the code and build the project, you can include it directly as a dependency
<version>develop-SNAPSHOT</version><!--You can use any of the tag/branch name available-->
121
-
</dependency>
122
-
```
123
-
124
-
125
-
126
-
127
-
## Building from source code
128
-
129
-
* Build in the Terminal
130
-
131
-
```bash
132
-
cd java-tron
133
-
./gradlew build
134
-
```
135
-
136
-
137
-
* Build in [IntelliJ IDEA](https://www.jetbrains.com/idea/) (community version is enough):
138
-
139
-
**Please run ./gradlew build once to build the protocol files**
140
-
141
-
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.
142
-
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`.
143
-
3. IntelliJ will open the project and start gradle syncing, which will take several minutes, depending on your network connection and your IntelliJ configuration
## Running a local node and connecting to the public testnet
154
-
155
-
* 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)
156
-
157
-
158
-
### Running a Super Representative Node for mainnet
159
-
160
-
* Use the executable JAR(Recommended way)
161
-
162
-
```bash
163
-
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.
170
-
171
-
<details>
172
-
<summary>Correct output</summary>
173
-
174
-
```bash
175
-
176
-
20:43:18.138 INFO [main] [o.t.p.FullNode](FullNode.java:21) Full node running.
177
-
20:43:18.486 INFO [main] [o.t.c.c.a.Args](Args.java:429) Bind address wasn't set, Punching to identify it...
178
-
20:43:18.493 INFO [main] [o.t.c.c.a.Args](Args.java:433) UDP local bound to: 10.0.8.146
179
-
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...
180
-
20:43:19.450 INFO [main] [o.t.c.c.a.Args](Args.java:461) External address identified: 47.74.147.87
181
-
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
182
-
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
Using TaskInputs.file() with something that doesn't resolve to a File object has been deprecated and is scheduled to be removed in Gradle 5.0. Use TaskInputs.files() instead.
228
-
229
-
> Task :run
230
-
20:39:22.749 INFO [o.t.c.c.a.Args] private.key = 63e62a71ed39e30bac7223097a173924aad5855959de517ff2987b0e0ec89f1a
231
-
20:39:22.816 WARN [o.t.c.c.a.Args] localwitness size must be one, get the first one
232
-
20:39:22.832 INFO [o.t.p.FullNode] Here is the help message.output-directory/
20:39:40.102 INFO [o.t.c.d.Manager] save block: BlockCapsule{blockId=fd30a16160715f3ca1a5bcad18e81991cd6f47265a71815bd2c943129b258cd2, num=140, parentId=dadeff07c32d342b941cfa97ba82870958615e7ae73fffeaf3c6a334d81fe3bd, generatedByMyself=true}
293
-
20:39:40.102 INFO [o.t.c.s.WitnessService] Block is generated successfully, Its Id is fd30a16160715f3ca1a5bcad18e81991cd6f47265a71815bd2c943129b258cd2,number140
294
-
20:39:40.102 INFO [o.t.c.n.n.NodeImpl] Ready to broadcast a block, Its hash is fd30a16160715f3ca1a5bcad18e81991cd6f47265a71815bd2c943129b258cd2
295
-
20:39:40.107 INFO [o.t.c.s.WitnessService] Produced
296
-
20:39:40.107 INFO [o.t.c.s.WitnessService] Sleep : 4893 ms,next time:2018-03-22T20:39:45.000+08:00
297
-
20:39:43.805 INFO [o.t.c.n.n.NodeImpl] other peer is nil, please wait ...
0 commit comments