diff --git a/proto/feemarket/feemarket/v1/genesis.proto b/proto/feemarket/feemarket/v1/genesis.proto index 7178b98..27e202b 100644 --- a/proto/feemarket/feemarket/v1/genesis.proto +++ b/proto/feemarket/feemarket/v1/genesis.proto @@ -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; diff --git a/x/feemarket/types/state.go b/x/feemarket/types/state.go index e36ca17..f35a92a 100644 --- a/x/feemarket/types/state.go +++ b/x/feemarket/types/state.go @@ -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),