-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat: sketch the spec of feemarket module #10463
Conversation
WIP cosmos#9963 Merge the idea of [feemarket module in ethermint](https://github.com/tharsis/ethermint/tree/main/x/feemarket) into cosmos-sdk.
FYI @fedekunze |
I think the spec is quite straightforward. I'd suggest opening a PR with ADR first though, because the overall impact is unclear from the spec itself. A few points off the top of my head I'd like to see:
|
|
||
This document specifies the feemarket module of the Cosmos SDK. | ||
|
||
The feemarket module implements a base gas prices in consensus level. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The feemarket module implements a base gas prices in consensus level. | |
The feemarket module implements a base gas price at the consensus level. |
or: base gas prices
Since we validate the
it seems not much difference for genesis or in the middle of the chain.
The base gas price overall will be higher with "disable empty blocks", since the empty blocks will have the side-effect of lowering the base gas prices. |
|
The total gas used by current block is stored in chain state at the `EndBlock` event. | ||
|
||
It's initialized to `-1` in `InitGenesis`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to add another .md file for how the state (kv store) looks like? In particular:
- under which key is this total gas stored in the substore? (e.g.
0x0
) - which encoding to use for the integer?
Also see SPEC_SPEC for more info.
I don't understand why is this being added to the SDK, why rely on another dependency for Ethermint ( |
the context is "Consensus Fees" WG for Cosmos SDK: #9058 So it's a separate effort and the only relation is that it may get inspiration for the implementation. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
need to redo this, closing now. |
Description
WIP #9963
Merge the idea of feemarket module in ethermint
into cosmos-sdk.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change