Function validate_explicit_price_bump

Source
pub fn validate_explicit_price_bump(
    old_evm_data: &EvmTransactionData,
    new_evm_data: &EvmTransactionData,
    relayer: &RelayerRepoModel,
    network_lacks_mempool: bool,
) -> Result<PriceParams, TransactionError>
Expand description

Validates explicit gas prices from a replacement request against bump requirements.

§Arguments

  • old_evm_data - The original transaction data
  • new_evm_data - The new transaction data with explicit prices
  • relayer - The relayer model for policy validation
  • network_lacks_mempool - Whether the network lacks mempool (skips bump validation)

§Returns

A Result containing validated price parameters or a TransactionError.