Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move more logic in blockstore_processor behind allow_dead_slots flag
A flag in ProcessOptions can be set to allow dead slots. If the flag is not set and a block is marked dead, fetching the entries will fail as the entry fetch method internally checks if the slot is dead. Within process_next_slots(), new Banks are created as replay progresses through slots. If allow_dead_slots=false and a dead slot is loaded, replay of the slot will error. That error is handled and results in the Bank being removed from BankForks. Instead of allowing the extra work to proceed, check if new slots to replay are dead (and allow_dead_slots=false) BEFORE the creation of a new Bank.
- Loading branch information