From 607d83e0d5bc2fc005a132dbdacaf7da63201e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 12 Mar 2024 18:04:41 +0200 Subject: [PATCH] miner: add todos --- miner/miner.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miner/miner.go b/miner/miner.go index 2b8fef01e7..eefb70eb04 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -204,6 +204,7 @@ func (miner *Miner) ReportFeeMetrics(payload *Payload, block *types.Block) { blockIncludedFeeGauge.Update(new(big.Int).Div(payout.Value(), bigGwei).Int64()) } else { // Possibly not an MEV block, report the boring mining fees + // TODO(karalabe): This is wrong, should do a block trace since our pool is not the same a the block feeInEther := new(big.Float).Quo(new(big.Float).SetInt(payload.fullFees), big.NewFloat(params.Ether)) log.Info("Plain block detected", "reward", feeInEther) @@ -224,6 +225,7 @@ func (miner *Miner) ReportFeeMetrics(payload *Payload, block *types.Block) { blockIncludedFeeGauge.Update(new(big.Int).Div(payout.Value(), bigGwei).Int64()) } else { // Unknown MEV block, report the boring mining fees + // TODO(karalabe): This is wrong, should do a block trace since our pool is not the same a the 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)