Skip to content

Commit

Permalink
Fix typos...
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Mar 7, 2024
1 parent 1d4b087 commit eb87f1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unified-scheduler-logic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -685,14 +685,14 @@ impl SchedulingStateMachine {
//
// The safe variant has additional account-locking related verifications, which is crucial.
//
// Currently the replaying stage is redundantly calling `get_accont_locks()` when unified
// Currently the replaying stage is redundantly calling `get_account_locks()` when unified
// scheduler is enabled on the given transaction at the blockstore. This will be relaxed
// for optimization in the future. As for banking stage with unified scheduler, it will
// need to run .get_account_locks() at least once somewhere in the code path. In the
// distant future, this function `create_task()` should be adjusted so that both stages do
// the checks before calling this (say, with some ad-hoc type like
// `SanitizedTransactionWithCheckedAccountLocks`) or do the chccks here, resulting in
// eliminating the redudant one in the replaying stage and in the handler.
// `SanitizedTransactionWithCheckedAccountLocks`) or do the checks here, resulting in
// eliminating the redundant one in the replaying stage and in the handler.
let locks = transaction.get_account_locks_unchecked();

let writable_locks = locks
Expand Down

0 comments on commit eb87f1d

Please sign in to comment.