docker-tron-quickstart icon indicating copy to clipboard operation
docker-tron-quickstart copied to clipboard

How to increase time spent on transactions?

Open jochem-brouwer opened this issue 6 years ago • 2 comments

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 avatar May 17 '19 18:05 jochem-brouwer

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.

jochem-brouwer avatar May 18 '19 00:05 jochem-brouwer

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

sullof avatar Dec 18 '19 19:12 sullof