Skip to content

Commit

Permalink
feat(admin): add mutable variable in reputation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Jan 26, 2024
1 parent aa9f39d commit da8caa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/pool/src/mempool/paymaster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 1 addition & 3 deletions crates/pool/src/mempool/uo_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,6 @@ mod tests {
inclusion_rate_factor: u64,
throttling_slack: u64,
ban_slack: u64,
tracking_enabled: bool,
counts: Arc<RwLock<Counts>>,
}

Expand All @@ -1446,7 +1445,6 @@ mod tests {
Self {
throttling_slack,
ban_slack,
tracking_enabled: true,
..Self::default()
}
}
Expand All @@ -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) {
Expand Down

0 comments on commit da8caa0

Please sign in to comment.