Gas Consumption Framework #9072
Replies: 4 comments 15 replies
-
Thanks @robert-zaremba. It would be great if we had the fee table configurable via params and available to all modules. Then, |
Beta Was this translation helpful? Give feedback.
-
This sounds good to me. Do you imagine modules registering this as a param or just as compile time? Does this include both these items?
|
Beta Was this translation helpful? Give feedback.
-
For messages, I think it's hard to make a Msg level fixed fee - I think it's easier to think about operations when we process message. |
Beta Was this translation helpful? Give feedback.
-
Another angle on gas consumption is the time required to process each type of msg. As "time required to process" would be highly variable based on the hardware the node is running on and thus non-deterministic this approach would be tough to get right... but presuming there is a way to do it we could potentially determine a continuous query of "median time required to process" for each type of msg based on the last 100 blocks that contained the message. The timing information from this query could then be fed back into the system to maintain a fee table. |
Beta Was this translation helpful? Give feedback.
-
Summary
It would be useful to have a reference fee values and a mechanism to assign fees for new operations (gas consumption, don't confuse with gas prices).
In SDK, the gas consumption values (amount of gas per certain operations) are spread across all packages. It's hard to have any grasp about current fee values.
Without a reference fee framework, we can't correctly asses gas consumption values for new operations. Furthermore it's almost impossible to easily scale these values by some factor.
Context
While productionizing and analyzing x/fee_grant and x/authz we had a problem of creating and assessing new fee values.
Goals
KVGasConfig
,DefaultSigVerifyCostSecp256k1
. However, there is no single baseline and it's impossible to imports some of this values without creating import cycles or config management difficulties.Beta Was this translation helpful? Give feedback.
All reactions