TRON-US / docker-tron-quickstart

A complete private network for Tron development
96 stars 66 forks source link

How to increase time spent on transactions? #1

Open jochem-brouwer opened 5 years ago

jochem-brouwer commented 5 years ago

I cannot deploy medium sized contracts on the test network. They always run out of time. On mainnet the time you can spend on a transaction is much higher. How do I increase this?

jochem-brouwer commented 5 years ago

Per discussion with @sullof:

-e "preapprove=maxCpuTimeOfOneTx:20"

This sets the max cpu time of one TX to 20ms.

@sullof :

In general, you can load https://api.trongrid.io/wallet/getchainparametersand modify any parameter using the preapprove variable running Quickstart. Just modify the name of the key, removing the initial get. For example, if the key returned by javatron is getTotalEnergyCurrentLimit, you set totalEnergyCurrentLimit. Of course you are generating a private network that work differently than either Shasta or Mainnet. So, it makes sense only for experiments.

sullof commented 4 years ago

@jochem-brouwer Did that work? If so, can you please close the issue?