mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
refactor(primitive-traits): use alloy ETHEREUM_BLOCK_GAS_LIMIT constant (#12019)
This commit is contained in:
@@ -3,8 +3,9 @@ use crate::{
|
||||
PoolSize, TransactionOrigin,
|
||||
};
|
||||
use alloy_consensus::constants::EIP4844_TX_TYPE_ID;
|
||||
use alloy_eips::eip1559::ETHEREUM_BLOCK_GAS_LIMIT;
|
||||
use alloy_primitives::Address;
|
||||
use reth_primitives::constants::{ETHEREUM_BLOCK_GAS_LIMIT, MIN_PROTOCOL_BASE_FEE};
|
||||
use reth_primitives::constants::MIN_PROTOCOL_BASE_FEE;
|
||||
use std::{collections::HashSet, ops::Mul};
|
||||
|
||||
/// Guarantees max transactions for one sender, compatible with geth/erigon
|
||||
|
||||
@@ -16,10 +16,10 @@ use crate::{
|
||||
PooledTransactionsElement, PropagatedTransactions, TransactionEvents, TransactionOrigin,
|
||||
TransactionPool, TransactionValidationOutcome, TransactionValidator, ValidPoolTransaction,
|
||||
};
|
||||
use alloy_eips::eip4844::BlobAndProofV1;
|
||||
use alloy_eips::{eip1559::ETHEREUM_BLOCK_GAS_LIMIT, eip4844::BlobAndProofV1};
|
||||
use alloy_primitives::{Address, TxHash, B256, U256};
|
||||
use reth_eth_wire_types::HandleMempoolData;
|
||||
use reth_primitives::{constants::ETHEREUM_BLOCK_GAS_LIMIT, BlobTransactionSidecar};
|
||||
use reth_primitives::BlobTransactionSidecar;
|
||||
use std::{collections::HashSet, marker::PhantomData, sync::Arc};
|
||||
use tokio::sync::{mpsc, mpsc::Receiver};
|
||||
|
||||
|
||||
@@ -22,10 +22,9 @@ use alloy_consensus::constants::{
|
||||
EIP1559_TX_TYPE_ID, EIP2930_TX_TYPE_ID, EIP4844_TX_TYPE_ID, EIP7702_TX_TYPE_ID,
|
||||
LEGACY_TX_TYPE_ID,
|
||||
};
|
||||
use alloy_eips::eip1559::ETHEREUM_BLOCK_GAS_LIMIT;
|
||||
use alloy_primitives::{Address, TxHash, B256};
|
||||
use reth_primitives::constants::{
|
||||
eip4844::BLOB_TX_MIN_BLOB_GASPRICE, ETHEREUM_BLOCK_GAS_LIMIT, MIN_PROTOCOL_BASE_FEE,
|
||||
};
|
||||
use reth_primitives::constants::{eip4844::BLOB_TX_MIN_BLOB_GASPRICE, MIN_PROTOCOL_BASE_FEE};
|
||||
use rustc_hash::FxHashMap;
|
||||
use smallvec::SmallVec;
|
||||
use std::{
|
||||
|
||||
Reference in New Issue
Block a user