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

feat: EndBlock with Updating #32

Merged
merged 6 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions proto/feemarket/feemarket/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@ message State {
(gogoproto.nullable) = false
];

// MinBaseFee is the minimum base fee that can be charged. This is denominated
// in the fee per gas unit.
string min_base_fee = 2 [
(cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "cosmossdk.io/math.Int",
(gogoproto.nullable) = false
];

// LearningRate is the current learning rate.
string learning_rate = 2 [
string learning_rate = 3 [
(cosmos_proto.scalar) = "cosmos.Legacy",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false
Expand All @@ -40,16 +48,16 @@ message State {
// Window contains a list of the last blocks' utilization values. This is used
// to calculate the next base fee. This stores the number of units of gas
// consumed per block.
repeated uint64 window = 3;
repeated uint64 window = 4;

// Index is the index of the current block in the block utilization window.
uint64 index = 4;
uint64 index = 5;

// MaxBlockUtilization is the maximum utilization of a given block. This is
// denominated in the number of gas units consumed per block.
uint64 max_block_utilization = 5;
uint64 max_block_utilization = 6;

// TargetBlockUtilization is the target utilization of a given block. This is
// denominated in the number of gas units consumed per block.
uint64 target_block_utilization = 6;
uint64 target_block_utilization = 7;
}
Loading
Loading