From 5b464b3b5a1c7b8f878beb4478decd89638aa5bf Mon Sep 17 00:00:00 2001 From: Antonio Navarro Date: Mon, 8 Apr 2024 11:44:43 +0200 Subject: [PATCH] Increase the max gas limit to 10000M. We changed the default gas limit to a fixed value on the code. That is causing problems in some realms because the maximum limit is too low. Increasing the limit temporarily until we do some measurements and specifically know what is a sane max limit on gas usage. Signed-off-by: Antonio Navarro --- tm2/pkg/bft/types/params.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tm2/pkg/bft/types/params.go b/tm2/pkg/bft/types/params.go index 461d62a17b3..77d3b52e1c0 100644 --- a/tm2/pkg/bft/types/params.go +++ b/tm2/pkg/bft/types/params.go @@ -23,8 +23,9 @@ const ( // MaxBlockDataBytes is the max size of the block data MaxBlockDataBytes int64 = 2000000 // 2MB + // TODO: we have to tweak gas usage to know a real max value to put in here. // MaxBlockMaxGas is the max gas limit for the block - MaxBlockMaxGas int64 = 10000000 // 10M gas + MaxBlockMaxGas int64 = 10000000000 // 10000M gas // BlockTimeIotaMS is the block time iota (in ms) BlockTimeIotaMS int64 = 100 // ms