jito-foundation / stakenet

Jito StakeNet
https://www.jito.network/stakenet/
Apache License 2.0
40 stars 17 forks source link

Math fixes for cluster history slot counting #26

Closed ebatsell closed 4 months ago

ebatsell commented 4 months ago

Some of the logic around reading partial blocks was slightly off, especially for cases where there are no full blocks in between the start and end slot. Also, making sure we don't read slots past the current slot when updating current epoch.