Propagate dead slots up to replay (#17227)
This commit is contained in:
@ -2755,17 +2755,7 @@ impl Blockstore {
|
||||
let result: HashMap<u64, Vec<u64>> = slots
|
||||
.iter()
|
||||
.zip(slot_metas)
|
||||
.filter_map(|(height, meta)| {
|
||||
meta.map(|meta| {
|
||||
let valid_next_slots: Vec<u64> = meta
|
||||
.next_slots
|
||||
.iter()
|
||||
.cloned()
|
||||
.filter(|s| !self.is_dead(*s))
|
||||
.collect();
|
||||
(*height, valid_next_slots)
|
||||
})
|
||||
})
|
||||
.filter_map(|(height, meta)| meta.map(|meta| (*height, meta.next_slots.to_vec())))
|
||||
.collect();
|
||||
|
||||
Ok(result)
|
||||
|
Reference in New Issue
Block a user