mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
miner: add todos
This commit is contained in:
parent
8dd434cde2
commit
607d83e0d5
1 changed files with 2 additions and 0 deletions
|
|
@ -204,6 +204,7 @@ func (miner *Miner) ReportFeeMetrics(payload *Payload, block *types.Block) {
|
||||||
blockIncludedFeeGauge.Update(new(big.Int).Div(payout.Value(), bigGwei).Int64())
|
blockIncludedFeeGauge.Update(new(big.Int).Div(payout.Value(), bigGwei).Int64())
|
||||||
} else {
|
} else {
|
||||||
// Possibly not an MEV block, report the boring mining fees
|
// 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))
|
feeInEther := new(big.Float).Quo(new(big.Float).SetInt(payload.fullFees), big.NewFloat(params.Ether))
|
||||||
|
|
||||||
log.Info("Plain block detected", "reward", feeInEther)
|
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())
|
blockIncludedFeeGauge.Update(new(big.Int).Div(payout.Value(), bigGwei).Int64())
|
||||||
} else {
|
} else {
|
||||||
// Unknown MEV block, report the boring mining fees
|
// 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))
|
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)
|
log.Warn("MEV block detected, unknown reward", "reward", "unknown", "local", feeInEther)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue