Skip to content

Commit

Permalink
fixed gas limit coming from config (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxconway authored Nov 25, 2024
1 parent 6fc5efb commit 061ce91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zilliqa/src/api/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ fn get_block_by_hash(params: Params, node: &Arc<Mutex<Node>>) -> Result<Option<e
fn convert_block(node: &MutexGuard<Node>, block: &Block, full: bool) -> Result<eth::Block> {
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(),
Expand All @@ -372,7 +372,7 @@ fn convert_block(node: &MutexGuard<Node>, block: &Block, full: bool) -> Result<e
.map(|t| Ok(HashOrTransaction::Transaction(t?)))
.collect::<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,
Expand Down

0 comments on commit 061ce91

Please sign in to comment.