Skip to content

sasaxie/java-tron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Quick Start

Download and build

> git clone https://github.com/tron-network/java-tron.git
> cd java-tron
> gradle build

Import project to IDEA

  1. [File] -> [New] -> [Project from Existing Sources...]
  2. Select java-tron/build.gradle
  3. Dialog [Import Project from Gradle], confirm [Use auto-import] and [Use gradle wrapper task configuration] have been selected,then select Gradle JVM(JDK 1.8)and click [OK]

Testing

  • Install Kafka, create two topics (block and transaction)
  • Adjust constant DEFAULT_BOOTSTRAP_SERVERS in ConsumerProperty.java file and ProducerProperty.java file to your Kafka's host(like:192.168.1.199:9092)
  • IDEA: [Edit Configurations...] -> [Program arguments]: --type server
  • Run Tron (server)
  • IDEA: [Edit Configurations...] -> [Program arguments]: --type normal
  • Run Tron (client)
  • Execute help command on the client

License

java-tron is released under the LGPL-V3 license.

About

Java implementation of the Tron whitepaper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages