chore: Variable rename `height` ==> `slot` in blockstore function (#31132)
Slots refer to time windows where a block could be produced whereas height refers to how many blocks are actually in a fork. This function is operating on a list of slots, so the use of "height" is incorrect and misleading.
This commit is contained in:
parent
12e3e8b467
commit
814de50f2a
|
@ -3043,7 +3043,7 @@ impl Blockstore {
|
||||||
let result: HashMap<u64, Vec<u64>> = slots
|
let result: HashMap<u64, Vec<u64>> = slots
|
||||||
.iter()
|
.iter()
|
||||||
.zip(slot_metas)
|
.zip(slot_metas)
|
||||||
.filter_map(|(height, meta)| meta.map(|meta| (*height, meta.next_slots.to_vec())))
|
.filter_map(|(slot, meta)| meta.map(|meta| (*slot, meta.next_slots.to_vec())))
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
Ok(result)
|
Ok(result)
|
||||||
|
|
Loading…
Reference in New Issue