Skip to content

Commit

Permalink
fix: execution head block transaction count
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed May 16, 2022
1 parent 5c4e54f commit bec90ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions pkg/exporter/consensus/jobs/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,3 @@ func (g *General) GetBeaconSlot(ctx context.Context, identifier string) error {
func (g *General) ObserveSlot(identifier string, slot uint64) {
g.Slots.WithLabelValues(identifier).Set(float64(slot))
}

func (g *General) ObserveNetworkID(networkID uint64) {
g.NetworkdID.Set(float64(networkID))
}
2 changes: 1 addition & 1 deletion pkg/exporter/execution/jobs/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (b *BlockMetrics) getHeadBlockStats(ctx context.Context) error {
b.HeadGasLimit.Set(float64(block.GasLimit()))
b.HeadBaseFeePerGas.Set(float64(block.BaseFee().Int64()))
b.HeadBlockSize.Set(float64(block.Size()))
b.HeadTransactionCount.Add(float64(len(block.Transactions())))
b.HeadTransactionCount.Set(float64(len(block.Transactions())))

return nil
}
Expand Down

0 comments on commit bec90ec

Please sign in to comment.