Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
davidterpay committed Nov 14, 2023
1 parent c0e2a60 commit 5c27161
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion proto/feemarket/feemarket/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ 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
// calculate the next base fee. This stores the number of units of gas consumed
// per block.
repeated uint64 window = 3;

Expand Down
6 changes: 3 additions & 3 deletions x/feemarket/types/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"cosmossdk.io/math"
)

// NewBlockUtilization instantiates a new block utilization instance. This
// struct is utilized to track how full blocks are over a sliding
// window.
// NewState instantiates a new fee market state instance. This is utilized
// to implement both the base EIP-1559 fee market implementation and the
// AIMD EIP-1559 fee market implementation.
func NewState(window uint64, baseFee math.Int, learningRate math.LegacyDec) State {
return State{
Window: make([]uint64, window),
Expand Down

0 comments on commit 5c27161

Please sign in to comment.