Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to increase time spent on transactions? #1

Open
jochem-brouwer opened this issue May 17, 2019 · 2 comments
Open

How to increase time spent on transactions? #1

jochem-brouwer opened this issue May 17, 2019 · 2 comments

Comments

@jochem-brouwer
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor

sullof commented Dec 18, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants