Replies: 2 comments 6 replies
-
Not against this in principle, but it seems like the core problem is we don't have good tools for determining how to meter operations. Whether we simulate in-situ or pre-price compute, both require much better tools for benchmarking. Notably this is kind of close to what Solana has today (computation is metered by signature only) and it looks like they're now starting to back into something that looks closer to gas metering per operation because signatures don't accurately capture compute load. |
Beta Was this translation helpful? Give feedback.
-
I‘d add that gas also acts as Defense against transactions in CosmWasm smart contracts. Removing gas on a SDK level would require a solution for CosmWasm then. How do we avoid people from crafting complex smart contract transactions taking an eternity to compute (or simply bugs). |
Beta Was this translation helpful? Give feedback.
-
The Cosmos SDK has had a gas feature since launch that was loosely inspired by Ethereum gas features.
Gas functioned as way of helping the poorly informed Comet BFT block proposer about how to fill blocks
This feature has never worked well. The simulation function has always been unreliable.
Gas functions as defense in depth against programming mistakes by module developers that introduce states or arguments that consume large amount of resources.
The concept of gas refunds have never really worked well in the Cosmos context.
My proposal is that we remove gas as user facing concept.
Developers should set one resource bounds on their message types. They can have variants. Users might need to pick one of N gas variants and pay a higher fee for the larger variants.
Developers can choose to enable metering on a message or not on a per message basis .
Beta Was this translation helpful? Give feedback.
All reactions