forked from cerc-io/laconicd-deprecated
a2c26208ed
* add spec for feemarket * update spec from comments * update spec * update abstract * update with grpc query * add more content for tip section * update specs with latest behavior * cleanup unused store prefix * Update x/feemarket/spec/01_concepts.md * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
15 lines
528 B
Markdown
15 lines
528 B
Markdown
<!--
|
|
order: 2
|
|
-->
|
|
|
|
# State
|
|
|
|
The x/feemarket module keeps in the state variable needed to the fee calculation:
|
|
|
|
Only BlockGasUsed in previous block needs to be tracked in state for the next base fee calculation.
|
|
|
|
|
|
| | Description | Key | Value | Store |
|
|
| ----------- | ------------------------------ | ---------------| ------------------- | --------- |
|
|
| BlockGasUsed | gas used in the block | `[]byte{1}` | `[]byte{gas_used}` | KV |
|