Skip to content

Commit

Permalink
feat: add "block_gas" event type
Browse files Browse the repository at this point in the history
  • Loading branch information
kakysha committed Oct 15, 2024
1 parent a74261a commit 6173e61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x/feemarket/keeper/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (k *Keeper) EndBlock(ctx sdk.Context) error {
}()

ctx.EventManager().EmitEvent(sdk.NewEvent(
"block_gas",
types.EventTypeBlockGas,
sdk.NewAttribute("height", fmt.Sprintf("%d", ctx.BlockHeight())),
sdk.NewAttribute("amount", fmt.Sprintf("%d", gasWanted)),
))
Expand Down
1 change: 1 addition & 0 deletions x/feemarket/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package types
// feemarket module events
const (
EventTypeFeeMarket = "fee_market"
EventTypeBlockGas = "block_gas"

AttributeKeyBaseFee = "base_fee"
)

0 comments on commit 6173e61

Please sign in to comment.