Skip to content

Fix ethereum gas pricing#223

Merged
girazoki merged 6 commits intomasterfrom
girazoki-fix-gasw-to-weight
Aug 24, 2023
Merged

Fix ethereum gas pricing#223
girazoki merged 6 commits intomasterfrom
girazoki-fix-gasw-to-weight

Conversation

@girazoki
Copy link
Copy Markdown
Contributor

Brings polkadot-evm/frontier#1115 and sets the correct value in the max block gas and miliseconds per block, so that gas calculation is correct with respect to weight


parameter_types! {
pub DefaultBaseFeePerGas: U256 = U256::from(1_000_000_000);
pub DefaultBaseFeePerGas: U256 = U256::from(2_000_000_000);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This internal gets multiplied by the ideal target fullness (50%) to calculate the minimum gas price below which we cannot drop

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In short, at most the minimum gas price can drop to 1gWei

Comment thread container-chains/templates/frontier/runtime/src/lib.rs Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 23, 2023

Master coverage: 65.21%
Coverage generated "Thu Aug 24 12:17:02 UTC 2023":
https://d3gkbsry1ehhqi.cloudfront.net/tanssi-coverage/pulls/223/index.html
Pull coverage: 68.20%

@girazoki girazoki requested a review from nanocryk August 23, 2023 16:02
@girazoki girazoki merged commit c3aa3af into master Aug 24, 2023
@girazoki girazoki deleted the girazoki-fix-gasw-to-weight branch August 24, 2023 14:35
girazoki added a commit that referenced this pull request Aug 24, 2023
* Fix ethereum gas pricing

* update comment

* fmt

* increment spec versions
rimbi pushed a commit to rimbi/tanssi that referenced this pull request Oct 17, 2023
* Fix ethereum gas pricing

* update comment

* fmt

* increment spec versions
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.

2 participants