Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Fix fn name error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavis103 committed Apr 27, 2022
1 parent 8c14233 commit daf86f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ fn sum_additional_costs(batch: &TransactionBatch) -> u64 {

for transaction in transactions {
let transaction_cost = cost_model.calculate_cost(transaction);
additiona_costs.saturating_add_in_place(transaction_cost.signature_cost);
additiona_costs.saturating_add_in_place(transaction_cost.write_lock_cost);
additiona_costs.saturating_add_in_place(transaction_cost.data_bytes_cost);
additiona_costs.saturating_add_in_place(transaction_cost.builtins_execution_cost);
additional_costs = additional_costs.saturating_add(transaction_cost.signature_cost);
additional_costs = additional_costs.saturating_add(transaction_cost.write_lock_cost);
additional_costs = additional_costs.saturating_add(transaction_cost.data_bytes_cost);
additional_costs = additional_costs.saturating_add(transaction_cost.builtins_execution_cost);
}
additional_costs
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/cost_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl CostModel {
.for_each(|(i, k)| {
if message.is_writable(i) {
tx_cost.writable_accounts.push(*k);
write_lock_cost.saturating_add_in_place(WRITE_LOCK_UNITS);
write_lock_cost = write_lock_cost.saturating_add(WRITE_LOCK_UNITS);
}
});
write_lock_cost
Expand Down

0 comments on commit daf86f6

Please sign in to comment.