Skip to content

Commit

Permalink
refactor(mempool): remove suspended tx pool from mempool, will be mov…
Browse files Browse the repository at this point in the history
…ed to partition manager (#742)
  • Loading branch information
ayeletstarkware committed Sep 9, 2024
1 parent 834eff6 commit 92a2530
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions crates/mempool/src/mempool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use starknet_api::transaction::{Tip, TransactionHash, ValidResourceBounds};
use starknet_mempool_types::errors::MempoolError;
use starknet_mempool_types::mempool_types::{Account, AccountState, MempoolInput, MempoolResult};

use crate::suspended_transaction_pool::SuspendedTransactionPool;
use crate::transaction_pool::TransactionPool;
use crate::transaction_queue::TransactionQueue;

Expand All @@ -23,8 +22,6 @@ pub struct Mempool {
tx_pool: TransactionPool,
// Transactions eligible for sequencing.
tx_queue: TransactionQueue,
// Transactions suspended because they are after a hole.
_suspended_tx_pool: SuspendedTransactionPool,
// Represents the current state of the mempool during block creation.
mempool_state: HashMap<ContractAddress, AccountState>,
// The most recent account nonces received, for all account in the pool.
Expand Down
1 change: 0 additions & 1 deletion crates/mempool/src/mempool_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ impl From<MempoolContent> for Mempool {
tx_pool: tx_pool.unwrap_or_default(),
tx_queue: tx_queue.unwrap_or_default(),
// TODO: Add implementation when needed.
_suspended_tx_pool: Default::default(),
mempool_state: Default::default(),
_account_nonces: account_nonces.unwrap_or_default(),
}
Expand Down

0 comments on commit 92a2530

Please sign in to comment.