Use epoch_accounts_hash::calculation_stop() (#28106)

This commit is contained in:
Brooks Prumo 2022-09-28 09:11:18 -04:00 committed by GitHub
parent 599677f965
commit 4d02292931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -6936,9 +6936,7 @@ impl Bank {
return false;
}
let first_slot_in_epoch = self.epoch_schedule().get_first_slot_in_epoch(self.epoch);
let stop_offset = epoch_accounts_hash::calculation_offset_stop(self);
let stop_slot = first_slot_in_epoch + stop_offset;
let stop_slot = epoch_accounts_hash::calculation_stop(self);
self.parent_slot() < stop_slot && self.slot() >= stop_slot
}