From 061ce91d64ab4c26b1de01d9167027a4e8b1424d Mon Sep 17 00:00:00 2001 From: Max Conway Date: Mon, 25 Nov 2024 15:40:05 +0000 Subject: [PATCH] fixed gas limit coming from config (#1901) --- zilliqa/src/api/eth.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zilliqa/src/api/eth.rs b/zilliqa/src/api/eth.rs index 6aec03fb6..b85ada203 100644 --- a/zilliqa/src/api/eth.rs +++ b/zilliqa/src/api/eth.rs @@ -355,7 +355,7 @@ fn get_block_by_hash(params: Params, node: &Arc>) -> Result, block: &Block, full: bool) -> Result { if !full { let miner = node.get_proposer_reward_address(block.header)?; - let block_gas_limit = node.config.consensus.eth_block_gas_limit; + let block_gas_limit = block.gas_limit(); Ok(eth::Block::from_block( block, miner.unwrap_or_default(), @@ -372,7 +372,7 @@ fn convert_block(node: &MutexGuard, block: &Block, full: bool) -> Result>()?; let miner = node.get_proposer_reward_address(block.header)?; - let block_gas_limit = node.config.consensus.eth_block_gas_limit; + let block_gas_limit = block.gas_limit(); let block = eth::Block::from_block(block, miner.unwrap_or_default(), block_gas_limit); Ok(eth::Block { transactions,