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

Use runtime api for getting base fee #892

Merged
merged 2 commits into from
Nov 23, 2022

Conversation

tgmichel
Copy link
Contributor

@tgmichel tgmichel commented Nov 3, 2022

Removes the dependency between the storage overrides and pallet-base-fee, as Frontier projects might not use the pallet, getting wrong base fee values. Uses the runtime-api gas_price instead.

Note

In general, runtime api access is always affected by the max_runtime_instances configuration used: the more number of runtime instances allowed to keep in memory, the lower the chance of having to recompile a VersionedRuntime on the fly and thus lower CPU usage (and fastest rpc responses in this case). In any case any production node should set this cli configuration to a high value to improve performance on runtime api access across runtime versions.

@tgmichel tgmichel marked this pull request as ready for review November 3, 2022 12:27
@sorpaas sorpaas merged commit 3cdb214 into polkadot-evm:master Nov 23, 2022
notlesh pushed a commit to moonbeam-foundation/frontier that referenced this pull request Nov 28, 2022
abhijeetbhagat pushed a commit to web3labs/frontier that referenced this pull request Jan 11, 2023
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