From 11872c9e267cefd206039f585df27cd399ef658b Mon Sep 17 00:00:00 2001 From: pgherveou Date: Sat, 11 Jan 2025 13:20:51 +0100 Subject: [PATCH] Relax gas_fee too high --- substrate/frame/revive/src/evm/runtime.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/substrate/frame/revive/src/evm/runtime.rs b/substrate/frame/revive/src/evm/runtime.rs index 44bb790ac26a..d4b344e20eb8 100644 --- a/substrate/frame/revive/src/evm/runtime.rs +++ b/substrate/frame/revive/src/evm/runtime.rs @@ -413,12 +413,6 @@ pub trait EthExtra { return Err(InvalidTransaction::Payment.into()) } - if eth_fee_no_tip > actual_fee.saturating_mul(2u32.into()) { - log::debug!(target: LOG_TARGET, "actual fees: {actual_fee:?} too high, base eth fees: - {eth_fee_no_tip:?}"); - return Err(InvalidTransaction::Call.into()) - } - let tip = eth_fee.saturating_sub(eth_fee_no_tip); log::debug!(target: LOG_TARGET, "Created checked Ethereum transaction with nonce: {nonce:?} and tip: {tip:?}"); Ok(CheckedExtrinsic { @@ -679,13 +673,6 @@ mod test { }), InvalidTransaction::Payment, ), - ( - "Gas fees too high", - Box::new(|tx| { - tx.gas = Some(tx.gas.unwrap() * 2); - }), - InvalidTransaction::Call, - ), ( "Gas fees too low", Box::new(|tx| {