Skip to content

Commit ea1bd09

Browse files
committed
chore: derrive debug
1 parent affa247 commit ea1bd09

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

crates/account-abstraction-core/src/domain/mempool.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use crate::domain::types::{UserOpHash, WrappedUserOperation};
22
use std::sync::Arc;
3-
4-
#[derive(Default)]
3+
use std::fmt::Debug;
4+
#[derive(Default, Debug)]
55
pub struct PoolConfig {
66
pub minimum_max_fee_per_gas: u128,
77
}
88

9-
pub trait Mempool: Send + Sync {
9+
pub trait Mempool: Send + Sync + Debug {
1010
fn add_operation(&mut self, operation: &WrappedUserOperation) -> Result<(), anyhow::Error>;
1111

1212
fn get_top_operations(&self, n: usize) -> Vec<Arc<WrappedUserOperation>>;

crates/account-abstraction-core/src/infrastructure/in_memory/mempool.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ impl Ord for ByNonce {
8282
}
8383
}
8484

85+
#[derive(Debug)]
8586
pub struct InMemoryMempool {
8687
config: PoolConfig,
8788
best: BTreeSet<ByMaxFeeAndSubmissionId>,

0 commit comments

Comments
 (0)