telosnetwork / telos-consensus-client

Consensus client for TelosEVM
Apache License 2.0
2 stars 0 forks source link

Increase block gas limit dynamically in translator #54

Closed poplexity closed 1 month ago

poplexity commented 2 months ago

Reth will reject blocks if they have a transaction who's gas_limit is greater than the block's gas limit, so we need to dynamically set the block's gas limit in the block header if it exceeds our default value of 0x7fffffff

block gas limit = MAX(SUM(biggest_transaction_gas_limit, cumulative_gas_used_block(at trx index of current trx)), cumulative_gas_used_block, config.block_gas_limit)