Add comment to OptimisticallyConfirmedBankTracker (#33238)

Add comment
This commit is contained in:
Tyera 2023-09-21 09:59:51 -06:00 committed by GitHub
parent cd9b2cc20b
commit 3e8ccbe196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -314,6 +314,9 @@ impl OptimisticallyConfirmedBankTracker {
slot,
timestamp: timestamp(),
});
// NOTE: replay of `slot` may or may not be complete. Therefore, most new
// functionality to be triggered on optimistic confirmation should go in
// `notify_or_defer()` under the `bank.is_frozen()` case instead of here.
}
BankNotification::Frozen(bank) => {
let frozen_slot = bank.slot();