Skip to content

sangjinj/java-tron

 
 

Repository files navigation



java-tron

           Slack Build Status GitHub issues GitHub pull requests GitHub contributors license

What's TRON?

TRON is a block chain-based decentralized smart protocol and an application development platform. It allows each user to freely publish, store and own contents and data, and in the decentralized autonomous form, decides an incentive mechanism and enables application developers and content creators through digital asset distribution, circulation and transaction, thus forming a decentralized content entertainment ecosystem.

TRON is a product of Web 4.0 and the decentralized internet of next generation.

Resources

  1. TRON Website
  2. Documentation
    (Comming soon. You are seeing part of it.)
  3. Blog
  4. Community Telegram Group
  5. Slack Workspace
  6. White Paper(Comming soon)
  7. Roadmap(Comming soon)
  8. Tron Wiki
  9. Tron Protocol
    10.Wallet Client
    11.Wallet Web
    12.Progress Report

Set up the environment

Supported Operating System

Tron currently supports the following operating systems:

  1. Centos 7.
  2. Fedora 25 and higher (Fedora 27 recommended).
  3. Mint 18.
  4. Ubuntu 16.04 (Ubuntu 16.10 recommended).
  5. MacOS Darwin 10.12 and higher (MacOS 10.13.x recommended).

How to Build

Getting the code

git clone https://github.com/tronprotocol/java-tron.git

Prepare dependencies

Building source code

  • Build in the Terminal
cd java-tron
./gradlew build

The building will normally finish in less than one minute.

a). Start IntelliJ Idea. 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.

b). Check on Use auto-import on the Import Project from Gradle dialog. Select JDK 1.8 in the Gradle JVM option. Then click OK.

c). IntelliJ will open the project and start gradle syncing, which will take several minutes, depending on your network connection and your IntelliJ configuration.

d). After the syncing finished, select Gradle -> Tasks -> build, and then double click build option. The project will start building, which will normally take less than one minute to finish.

git clone https://github.com/tronprotocol/java-tron.git
./gradlew build

How To Run

Running a private testnet

Running a full node

  • In the Terminal
./gradlew run
  • In IntelliJ IDEA

1). After the building finishes, locate FullNode in the project structure view panel, which is on the path java-tron/src/main/java/org.tron/program/FullNode.

2). Select FullNode, right click on it, and select Run 'FullNode.main()', then FullNode starts running.

Running a witness node

  • In the Terminal
./gradlew run -Pwitness
  • In IntelliJ IDEA

Running multi-nodes

Running a local node and connecting to the public testnet

Running a full node

Running a witness node

Quick Start

Read the Quick Start.

Commands

Read the Commands.

Contact

Chat with us via Gitter.

Contribution

Contributions are welcomed and greatly appreciated. Please see CONTRIBUTING.md for details on submitting patches and the contribution workflow.

About

Java implementation of the Tron whitepaper

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.9%
  • Shell 0.1%