mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
miner: fix chart values for non-mev blocks
This commit is contained in:
parent
2f01d3783d
commit
8dd434cde2
1 changed files with 2 additions and 2 deletions
|
|
@ -207,7 +207,7 @@ func (miner *Miner) ReportFeeMetrics(payload *Payload, block *types.Block) {
|
|||
feeInEther := new(big.Float).Quo(new(big.Float).SetInt(payload.fullFees), big.NewFloat(params.Ether))
|
||||
|
||||
log.Info("Plain block detected", "reward", feeInEther)
|
||||
blockIncludedFeeGauge.Update(new(big.Int).Div(payout.Value(), bigGwei).Int64())
|
||||
blockIncludedFeeGauge.Update(new(big.Int).Div(payload.fullFees, bigGwei).Int64())
|
||||
}
|
||||
}
|
||||
} else if payload.full.Coinbase() != block.Coinbase() {
|
||||
|
|
@ -227,7 +227,7 @@ func (miner *Miner) ReportFeeMetrics(payload *Payload, block *types.Block) {
|
|||
feeInEther := new(big.Float).Quo(new(big.Float).SetInt(payload.fullFees), big.NewFloat(params.Ether))
|
||||
|
||||
log.Warn("MEV block detected, unknown reward", "reward", "unknown", "local", feeInEther)
|
||||
blockIncludedFeeGauge.Update(new(big.Int).Div(payout.Value(), bigGwei).Int64())
|
||||
blockIncludedFeeGauge.Update(new(big.Int).Div(payload.fullFees, bigGwei).Int64())
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue