Skip to content

Commit

Permalink
Update min priority fee
Browse files Browse the repository at this point in the history
  • Loading branch information
ercecan committed Sep 24, 2024
1 parent 962de4e commit 44dab9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ resources/bitcoin/inscription_txs/
adapters/solana/libyellowstone_grpc_geyser.dylib

reveal_*.tx

db
4 changes: 2 additions & 2 deletions crates/ethereum-rpc/src/gas_price/gas_oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

use citrea_evm::{Evm, SYSTEM_SIGNER};
use citrea_primitives::basefee::calculate_next_block_base_fee;
use citrea_primitives::DEFAULT_GAS_PRICE;
use parking_lot::Mutex;
use reth_primitives::constants::GWEI_TO_WEI;
use reth_primitives::{BlockNumberOrTag, B256, U256};
use reth_rpc_eth_types::error::{EthApiError, EthResult, RpcInvalidTransactionError};
use reth_rpc_types::{BlockTransactions, FeeHistory};
Expand Down Expand Up @@ -414,7 +414,7 @@ impl Default for GasPriceOracleResult {
fn default() -> Self {
Self {
block_hash: B256::ZERO,
price: GWEI_TO_WEI as u128,
price: DEFAULT_GAS_PRICE,
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions crates/primitives/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@ pub const MAX_STATEDIFF_SIZE_COMMITMENT_THRESHOLD: u64 = 300 * 1024;

pub const MIN_BASE_FEE_PER_GAS: u128 = 10_000_000; // 0.01 gwei

pub const DEFAULT_GAS_PRICE: u128 = 10_000_000; // 0.01 gwei

/// Maximum size of a bitcoin transaction body in bytes
pub const MAX_TXBODY_SIZE: usize = 397000;

0 comments on commit 44dab9d

Please sign in to comment.