From da8caa0c6347a13736c4111f730efd916d32bf3e Mon Sep 17 00:00:00 2001 From: 0xfourzerofour Date: Fri, 26 Jan 2024 13:05:16 -0500 Subject: [PATCH] feat(admin): add mutable variable in reputation --- crates/pool/src/mempool/paymaster.rs | 2 +- crates/pool/src/mempool/uo_pool.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/pool/src/mempool/paymaster.rs b/crates/pool/src/mempool/paymaster.rs index 737c0b8b9..585bf593d 100644 --- a/crates/pool/src/mempool/paymaster.rs +++ b/crates/pool/src/mempool/paymaster.rs @@ -491,7 +491,7 @@ mod tests { #[test] fn replacement_uo_new_paymaster() { - let mut paymaster_tracker = PaymasterTracker::new(); + let mut paymaster_tracker = PaymasterTracker::new(true); let paymaster_0 = Address::random(); let paymaster_1 = Address::random(); diff --git a/crates/pool/src/mempool/uo_pool.rs b/crates/pool/src/mempool/uo_pool.rs index e14b88459..7859df634 100644 --- a/crates/pool/src/mempool/uo_pool.rs +++ b/crates/pool/src/mempool/uo_pool.rs @@ -1431,7 +1431,6 @@ mod tests { inclusion_rate_factor: u64, throttling_slack: u64, ban_slack: u64, - tracking_enabled: bool, counts: Arc>, } @@ -1446,7 +1445,6 @@ mod tests { Self { throttling_slack, ban_slack, - tracking_enabled: true, ..Self::default() } } @@ -1473,7 +1471,7 @@ mod tests { } fn toggle_tracking(&self) { - self.tracking_enabled = !self.tracking_enabled; + // only counts are locked for some reason here } fn handle_srep_050_penalty(&self, address: Address) {