tronprotocol / java-tron

Java implementation of the Tron whitepaper
GNU Lesser General Public License v3.0
3.64k stars 1.36k forks source link

Tron blockchain Upgradeablity #5858

Open sky-vibhu opened 1 week ago

sky-vibhu commented 1 week ago

Is the Tron blockchain upgradeable, and can we deploy new binaries to a Tron-like blockchain? Specifically, I am interested in understanding the following:

Can we perform upgrades on the Tron blockchain, such as deploying new versions of the blockchain software or making protocol changes? If our current blockchain implementation uses a custom configuration similar to Tron but with 6 decimal places for its token balances, is it possible to upgrade or modify this blockchain to support 18 decimal places instead? If so, what steps would be involved in making such a change? Thank you for your assistance!

tomatoishealthy commented 1 week ago

In theory, you can change the code at will to start a private chain that meets your requirements, but some customized functions may involve a lot of modifications, and these modifications should also be fully tested.

For example: the decimal, I think you can customize the decimal by modifying the code, but this may be a lot of work.

But if you mean dynamically upgrading blockchains through webassembly, such as Polkadot, TRON currently does not provide such a developer-friendly toolkit.