-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check and refine DefaultGasMultiplier #631
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is CosmWasm gas and Cosmos SDK gas. With 1.0 CosmWasm gas strives to consume 1 Teragas/millisecond on an off-the-shelf Intel machine (e.g. CI machine). Anything significatly cheaper of more expensive (in the order of magnitudes) justifies repricing.
From some very early measurements we set DefaultGasMultiplier to 100 and increased it by a factor of 150_000 because between 0.16 and 1.0 CosmWasm was changed to charge 150_000 instead of 1 gas per Wasm operation. But we don't know accurate this initial 100 is after two years of development.
To refine the multiplier, we should figure out the amount of gas Cosmos SDK consumes per millisecond. This can be done via secp256k1 signature verification. We know it costs 1000 Cosmo SDK gas. We need to benchmark it and calculate the rest from there.
The text was updated successfully, but these errors were encountered: