distribution/AllocateTokens
- inefficient computation of rewards
#13520
Labels
AllocateTokens
- inefficient computation of rewards
#13520
Summary of Bug
Not really a bug, more of an oversight that affects performance.
In the
AllocateTokens
method of the distribution module thevoteMultiplier
is applied to the reward of every validator, seecosmos-sdk/x/distribution/keeper/allocation.go
Line 93 in c308e1f
This could be done once outside of the iteration for the entire
feesCollected
.Version
c308e1f
Steps to Reproduce
NA
The text was updated successfully, but these errors were encountered: