Increase max_gas_burnt to 300Tgas #305
Replies: 2 comments 11 replies
-
I have been working on a way to replay past Aurora mainnet transactions in a local environment where I have control over
Based on these initial findings, it looks like increasing the gas limit will immediately unblock Aurora's partners and therefore is very helpful to us. For continued work on this: I will expand the number of transactions I am checking, and also look in more detail at the gas profiles of the transactions that pass with the 300 Tgas limit to get statistics on what components of the gas cost are most expensive for them when they are allowed to run to completion. |
Beta Was this translation helpful? Give feedback.
-
Regarding https://github.com/near/nearcore/blob/18558c582165db4bcda1d9d25b93d8ce61c55eba/runtime/runtime/src/lib.rs#L1346 should we actually send the currently left gas in the block as a limit into the execution function as a current limit? This seems like a simple change that can avoid these kinds of issues |
Beta Was this translation helpful? Give feedback.
-
Currently
max_gas_burnt
, which specifies the maximum amount of gas that can be used in a single function call receipt, is 200Tgas whilemax_prepaid_gas
, which specifies the maximum amount of gas that can be attached to a function call action, is 300Tgas. With an increasing demand to run larger transactions on NEAR, it behooves us to reconsider these limits that were set several years ago before NEAR was live. I suggest that we increasemax_gas_burnt
to 300Tgas while keepingmax_prepaid_gas
the same. This should allow us to increase Aurora single transaction capacity by 50% without much downside. One potential issue is that now the maximum amount of gas that can be burnt in one block is 1300Tgas due to this logic https://github.com/near/nearcore/blob/18558c582165db4bcda1d9d25b93d8ce61c55eba/runtime/runtime/src/lib.rs#L1346. However, coincidentally the block speed on mainnet is now 1.3s and therefore the increase inmax_gas_burnt
is unlikely to cause any issues with block speed.In general, we may want to reconsider how we set these limits. For reference, Ethereum allows a transaction to use the entirety of the block gas limit.
Beta Was this translation helpful? Give feedback.
All reactions