Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup BankForks access code in ShredFetchStage (#33066)
- BankForks is not an optional argument, so remove dated comment - Given that BankForks is always present, no need for special values to initialize variables before the loop - Root slot can be retrieved from root bank, no need to call BankForks::root() which will load the underlying atomic a second time - Use BankForks::highest_slot() instead of .slot() on .working_bank() to avoid the extra clone that .working_bank() performs - Move several operations outside of BankForks read lock scope to minimize lock time
- Loading branch information