java-tron

Java implementation of the Tron whitepaper

LGPL-3.0 License

Stars
3.6K

Bot releases are visible (Hide)

java-tron - Odyssey-v2.0.1

Published by zhaohong over 6 years ago

Feature

Storage

  • redesign the block storage structure, reduce the disk io to 50% of test net.
  • add the unconfirmed block rolling back logic.
  • implement the feature to safe close the node.

Network

  • improve the data sync logic, reduce the sync time to 1/3 of test net.
  • improve the node discover logic
  • implement the ddos defend module.

Architecture

  1. Fix the problem of disconnection due to BAD_TX due to certain transaction orders
  2. Fixes the problem that some transactions will be broadcast by nodes when an exception occurs
  3. Fixed the problem that the signed parallel verification counter in the block could not be zeroed
  4. Fix the deadlock problem caused by the log system
  5. Updated seed nodes

Mechanism

New Bandwidth Model

  • If the transaction is a token transfer, TRON will try to charge bandwidth points from the token issuer if sufficient
  • Bandwidth points will be charged from the initiator if sufficient
  • Complimentary bandwidth points will be charged from the initiator if sufficient
  • TRX will be charged from and the transaction initiator and burnt
    For more information, please view the document

Account Creation

In order to create a wallet using this private key, you will need to invoke one of the following three APIs:

  • directly invoke account creation API
  • transfer TRX to the address
  • transfer tokens to the address

Rewards

  • Candidate reward: 127 candidates updated once every 6 hours will share 115,200 TRX. The reward will be split in accordance to the votes each candidate receives. Each year, candidate reward will total 168,192,000 TRX.
  • Super Representative reward: The TRON Protocol network will generate one block every 3 seconds, with each block awarding 32 TRX to super representatives. A total of 336,384,000 TRX will be awarded annually to twenty-seven super representatives.

Bug Bounty Program

  • On June 1, TRON Foundation launched Tron Bug Bounty Program with a highest reward of USD$10 million. It is aimed at discovering potential technical vulnerabilities in the mainnet with the help of TRON’s community members, especially those who specialize in global network security, to sustain TRON mainnet as the most secure public blockchain in the industry and to provide secure and stable infrastructure and services to DApps deployed on the mainnet.

  • For more details, please visit https://tron.network/findBug?lng=en

Community Support

  • We encourage our community to run Tron Odyssey-v2.0.1. If you have some problems on running Tron mainnet, please join our Slacks to get help. You are welcome to ask questions here, we also encourage your answers for other developer’s questions.

Future Release

  • 6.25 will be Tron Independence Day, at that day we will transfer TRX erc20 token into TRX mainnet token. On 6.26, Tron will hold the first Super Representative election for producing blocks. On 7.31, official Tron Virtual Machine will be released.

Credits

  • Credits for winners of Tron Program Contest. Rovak, Marius Gill, zx63, TeamGaryTron, Flott, jr, John Savadkuhi, jake Lin are winners of Tron Program Contest for their works of Block Explorer, Android/IOS wallet, Mac wallet, Windows Wallet and Chrome extension wallet.
java-tron - Odyssey-v2.0

Published by zhaohong over 6 years ago

Feature

Storage

Network

  • optimizes handshake logic
  • optimizes sending ping message
  • optimizes message entities and net log
  • solving the problem of disconnection
  • solving thread sharing problem: send msg thread & handle msg thread
  • solving sync problem chain block inventory msg handle problem
  • solving the problem of repeated transaction in network module

Architecture

Mechanism

New Bandwidth Model

  • If the transaction is a token transfer, TRON will try to charge bandwidth points from the token issuer if sufficient
  • Bandwidth points will be charged from the initiator if sufficient
  • Complimentary bandwidth points will be charged from the initiator if sufficient
  • TRX will be charged from and the transaction initiator and burnt
    For more information, please view the document

Account Creation

In order to create a wallet using this private key, you will need to invoke one of the following three APIs:

  • directly invoke account creation API
  • transfer TRX to the address
  • transfer tokens to the address

Rewards

  • Candidate reward: 127 candidates updated once every 6 hours will share 115,200 TRX. The reward will be split in accordance to the votes each candidate receives. Each year, candidate reward will total 168,192,000 TRX.
  • Super Representative reward: The TRON Protocol network will generate one block every 3 seconds, with each block awarding 32 TRX to super representatives. A total of 336,384,000 TRX will be awarded annually to twenty-seven super representatives.

Bug Bounty Program

  • On June 1, TRON Foundation launched Tron Bug Bounty Program with a highest reward of USD$10 million. It is aimed at discovering potential technical vulnerabilities in the mainnet with the help of TRON’s community members, especially those who specialize in global network security, to sustain TRON mainnet as the most secure public blockchain in the industry and to provide secure and stable infrastructure and services to DApps deployed on the mainnet.

  • For more details, please visit https://tron.network/findBug?lng=en

Community Support

  • We encourage our community to run Tron Odyssey-v2.0. If you have some problems on running Tron mainnet, please join our Slacks to get help. You are welcome to ask questions here, we also encourage your answers for other developer’s questions.

Future Release

  • 6.25 will be Tron Independence Day, at that day we will transfer TRX erc20 token into TRX mainnet token. On 6.26, Tron will hold the first Super Representative election for producing blocks. On 7.31, official Tron Virtual Machine will be released.

Credits

  • Credits for winners of Tron Program Contest. Rovak, Marius Gill, zx63, TeamGaryTron, Flott, jr, John Savadkuhi, jake Lin are winners of Tron Program Contest for their works of Block Explorer, Android/IOS wallet, Mac wallet, Windows Wallet and Chrome extension wallet.
java-tron - Odyssey-v1.1.2

Published by zhaohong over 6 years ago

java-tron - Odyssey-v1.1.1

Published by zhaohong over 6 years ago

  • Feature
  1. new bandwidth model
  • Improvement
  1. more stable sync module.
  2. improve the database performance.
java-tron - Odyssey with VM

Published by zhaohong over 6 years ago

  • Feature
  1. fully support EVM.
  2. implement the vm-adapter.
  • Notics
    this is a test version.
java-tron - Odyssey-v1.1

Published by zhaohong over 6 years ago

  • Feature
    1. Remove the TronSR minimum balance limit.
    2. Token transaction consumes bandwidth of the token issuer.
    3. avoid flood attack
    4. add token frozen
    5. When an account issues an asset, it can promise the public to freeze multiple assets. The asset can be unfrozen manually after maturity
  • Improvement
    1. Remove duplicate verification
    2. improvement the message package speed
    3. avoid the dup validate
  • Bug Fix
    1. Fix the now timestamp bug.
    2. Fix the dup trans
    3. Fix the dead lock during sync.
java-tron - Odyssey-v1.0.6.3

Published by zhaohong over 6 years ago

  • fix bug
    fix the bandwidth timestamp error.
  • improvement
    batch transaction send & receive.
java-tron - Odyssey-v1.0.6.1

Published by zhaohong over 6 years ago

fix the parameter.

java-tron - Odyssey-v1.0.6

Published by zhaohong over 6 years ago

  • feature
  1. frozen and unfrozen balance for voting and bandwidth.
  2. transaction bandwidth control to avoid ddos.
  3. add testNG.
  • improvement
  1. parallel validate signature.
  2. increate the speed of block producing.
  3. reduce the memory usage of index service.
  4. increase the speed of broadcast block.
  5. improve the handshake mechanism.
  • bug fix
  1. Out of memory exception.
  2. dup message
java-tron - Odyssey-v1.0.5

Published by zhaohong over 6 years ago

Improvement

  1. add database index module for block explorer
  2. redesign the block id, merge block num in big endian
  3. improve the performance of database.
  4. add tapos support.

Bug Fix

  1. fix cache transaction exception.
  2. fix dup message .
  3. fix witness disorder exception.

Other

  1. support the grpc_web_proxy.
java-tron - Odyssey-v1.0.4

Published by zhaohong over 6 years ago

fix bug:

  1. incorrect disconnection during sync block.
  2. a minor error when process fork chain.
  3. the inconsistent of witness.
  4. other small bugs.

improve:

  1. add more exception.
  2. remove the head in manager.
  3. other improve.

Other:

  1. p2p version -> 51 for testnet
java-tron - Odyssey-v1.0.3

Published by zhaohong over 6 years ago

  1. fix bugs.
    1.1 transaction executed twice in some condition.
    1.2 test case break down cause the memory not release.
    1.3 and other bugs.
  2. performance improvement.
java-tron - Odyssey-v1.0.2 for test net

Published by zhaohong over 6 years ago

  1. the block chain
  2. tdp support.
  3. web wallet && explorer support.
java-tron - Odyssey-v1.0.1 for test net

Published by zhaohong over 6 years ago

  1. more stable version.
java-tron - Odyssey-v1.0 for test net

Published by zhaohong over 6 years ago

Odyssey-v1.0

java-tron - Exodus-v1.0

Published by tronfoundation almost 7 years ago

Features

  • Blockchain basic prototype

  • The multi-node test of the Kafka-based network

Commands

  • help: Help tips

  • account: Get address

  • getbalance: Get balance

  • send: Send balance to address

  • printblockchain: Print blockchain

  • exit: Exit