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
As various gov params were taken from paramSpace, the cost of storage gas increased.
It's not a bug, but I found out that there was a cost increase more than I expected while fixing the test case.
There is additional gas consumption as paramSpace getters such as k.getGasMultiplier(...) are called more than 4 times in various APIs such as Inistnatiate, Execute, etc. And these consume 1015 per time.
So, totally more consumed additionally over than 4k when every API called.
Proposal
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
brew0722
changed the title
Increased gas consumption when using paramspace for hardcode params to gov params
Increased gas when using paramspace for hardcode params to gov params
Apr 20, 2021
Summary
Problem Definition
As various gov params were taken from paramSpace, the cost of storage gas increased.
It's not a bug, but I found out that there was a cost increase more than I expected while fixing the test case.
There is additional gas consumption as paramSpace getters such as k.getGasMultiplier(...) are called more than 4 times in various APIs such as Inistnatiate, Execute, etc. And these consume 1015 per time.
So, totally more consumed additionally over than 4k when every API called.
Proposal
For Admin Use
The text was updated successfully, but these errors were encountered: