Skip to content

Commit

Permalink
Fix : compute_fee get_effective_total_gas()
Browse files Browse the repository at this point in the history
  • Loading branch information
modship committed Oct 2, 2024
1 parent bc225ec commit a4e21a3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions massa-execution-worker/src/speculative_deferred_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,7 @@ impl SpeculativeDeferredCallRegistry {

// Global overbooking fee
// TODO check if this is correct
let global_occupancy = self
.deferred_calls_changes
.get_effective_total_gas()
.unwrap_or_default();
let global_occupancy = self.get_effective_total_gas();
let global_overbooking_fee = Self::overbooking_fee(
(self.config.max_gas as u128).saturating_mul(self.config.max_future_slots as u128),
(self.config.max_future_slots as u128).saturating_mul(TARGET_BOOKING),
Expand Down

0 comments on commit a4e21a3

Please sign in to comment.