Skip to content

Commit

Permalink
params: make code size and init code size the same as go-ethereum
Browse files Browse the repository at this point in the history
Ronin increases the code size and init code size, so they are different from
go-ethereum. Temporarily revert these changes in the test branch.
  • Loading branch information
minh-bq committed Aug 20, 2024
1 parent 1c9bc74 commit 177fbcb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions params/protocol_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 177fbcb

Please sign in to comment.