Skip to content
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

Update gas costs #636

Merged
merged 3 commits into from
Oct 8, 2021
Merged

Update gas costs #636

merged 3 commits into from
Oct 8, 2021

Conversation

alpe
Copy link
Contributor

@alpe alpe commented Oct 8, 2021

resolves #566
resolves #631

Applies gas costs proposed in #634

@alpe alpe requested a review from ethanfrey October 8, 2021 10:21
Copy link
Member

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Please add a comment, then good to merge.

@@ -27,12 +27,12 @@ const (
// such as hardcoding them in contracts.
//
// Please note that all gas prices returned to wasmvm should have this multiplied.
DefaultGasMultiplier uint64 = 15_000_000
DefaultGasMultiplier uint64 = 140_000_000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good changes.

I would add some text where this came from.
Minimally linking to the Benchmarking PR and the discussion.
(For these 3 items)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were links to the related issues above already. I added the link to the PR discussion.

@codecov
Copy link

codecov bot commented Oct 8, 2021

Codecov Report

Merging #636 (bcb95cf) into master (53a6476) will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #636      +/-   ##
==========================================
+ Coverage   60.21%   60.24%   +0.03%     
==========================================
  Files          48       48              
  Lines        5313     5313              
==========================================
+ Hits         3199     3201       +2     
+ Misses       1889     1888       -1     
+ Partials      225      224       -1     
Impacted Files Coverage Δ
x/wasm/keeper/gas_register.go 97.29% <ø> (ø)
x/wasm/keeper/keeper.go 87.30% <0.00%> (+0.33%) ⬆️

@alpe alpe merged commit bc7a522 into master Oct 8, 2021
@ethanfrey ethanfrey deleted the 566-update_gas_costs branch October 11, 2021 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check and refine DefaultGasMultiplier Adjust default gas settings
3 participants