[Court] Fix double court pool iteration
Chralt98 opened this issue · 1 comments
Chralt98 commented
Future optimization to avoid iterating over all pools twice is to cache the total stake.
The iteration over the court pool happens twice here
However keep in mind that the inflation period check needs to hold true here
So caching the total stake might not allow us to do the inflation period check properly.
Chralt98 commented
This is a small performance optimization that would only be relevant if we had major and significant performance problems because of it. Because we currently have no significant user traction that notices this performance issue, I decide to close this issue.