From 36509f7ae6d3143570846ae7eff72af3bf7301fa Mon Sep 17 00:00:00 2001 From: Andrew Schran Date: Fri, 20 Dec 2024 18:40:52 -0500 Subject: [PATCH] tweak for review comment --- .../src/authority/shared_object_congestion_tracker.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/sui-core/src/authority/shared_object_congestion_tracker.rs b/crates/sui-core/src/authority/shared_object_congestion_tracker.rs index 630bbab0571d6..deb5d0aad272e 100644 --- a/crates/sui-core/src/authority/shared_object_congestion_tracker.rs +++ b/crates/sui-core/src/authority/shared_object_congestion_tracker.rs @@ -162,12 +162,7 @@ impl SharedObjectCongestionTracker { let start_cost = self.compute_tx_start_at_cost(&shared_input_objects); let end_cost = start_cost.saturating_add(tx_cost); - // Allow tx if it's within budget. - if end_cost <= self.max_accumulated_txn_cost_per_object_in_commit { - return None; - } - - // Allow over-budget tx if it's not above the overage limits. + // Allow tx if it's within configured limits. let burst_limit = self .max_accumulated_txn_cost_per_object_in_commit .saturating_add(self.allowed_txn_cost_overage_burst_per_object_in_commit);