gno icon indicating copy to clipboard operation
gno copied to clipboard

Increase tm2 max_block limits

Open r3v4s opened this issue 1 year ago • 0 comments

Description

tm2 has certain limit for each block https://github.com/gnolang/gno/blob/01e91be7bbde8e9cfc2069f66f24bc83d677103a/tm2/pkg/bft/types/params.go#L10-L31

I was wondering if we can adjust those limits and did some scraping and found CosmosSDK has some limits too.

Specially, MaxBlockMaxGas int64 = 10000000 // 10M gas size limit is too restrictive comparing cosmos had infinite(-1).

For example, deploying u256 almost spends 9M gas which is close to our current limit. image

Deploying more complex realm(such as pool from gnoswap) needs about 13M gas => always fail due to max gax is 10M

Are there any reasonable basis for above limits? If not can we increase it??

r3v4s avatar Mar 18 '24 12:03 r3v4s