From 177fbcb5ec16e79053f6b102658fe8a107d51ce6 Mon Sep 17 00:00:00 2001 From: Bui Quang Minh Date: Mon, 12 Aug 2024 11:00:17 +0700 Subject: [PATCH] params: make code size and init code size the same as go-ethereum Ronin increases the code size and init code size, so they are different from go-ethereum. Temporarily revert these changes in the test branch. --- params/protocol_params.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/params/protocol_params.go b/params/protocol_params.go index 669ed49c5..3ef1cf176 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -130,8 +130,9 @@ const ( ElasticityMultiplier = 2 // Bounds the maximum gas limit an EIP-1559 block may have. InitialBaseFee = 1000000000 // Initial base fee for EIP-1559 blocks. - MaxCodeSize = 24576 // Maximum bytecode to permit for a contract - MaxCodeSizeShanghai = 32768 // Maximum bytecode to permit for a contract after Shanghai + MaxCodeSize = 24576 // Maximum bytecode to permit for a contract + // MaxCodeSizeShanghai = 32768 // Maximum bytecode to permit for a contract after Shanghai + MaxCodeSizeShanghai = 24576 // Maximum bytecode to permit for a contract after Shanghai MaxInitCodeSize = 2 * MaxCodeSizeShanghai // Maximum initcode to permit in a creation transaction and create instructions // Precompiled contract gas prices