You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interface: Optimize the StakeHistory::get function
`StakeHistory::get` was performing a binary search for every requested
epoch.
Given that the stake history is contigous and ordered starting from the
latest epochs, we don't to binary search. We can derive the index by
looking up the latest element's epoch and subtracting the requested
epoch from it.
0 commit comments