diff --git a/packages/taiko-client/prover/event_handler/block_verified.go b/packages/taiko-client/prover/event_handler/block_verified.go index 41be0253928..c3a41319af3 100644 --- a/packages/taiko-client/prover/event_handler/block_verified.go +++ b/packages/taiko-client/prover/event_handler/block_verified.go @@ -22,10 +22,6 @@ func NewBlockVerifiedEventHandler(guardianProverAddress common.Address) *BlockVe func (h *BlockVerifiedEventHandler) Handle(e *bindings.TaikoL1ClientBlockVerified) { metrics.ProverLatestVerifiedIDGauge.Set(float64(e.BlockId.Uint64())) - if e.Prover == h.guardianProverAddress { - metrics.ProverProvenByGuardianGauge.Set(1) - } - log.Info( "New verified block", "blockID", e.BlockId, diff --git a/packages/taiko-client/prover/event_handler/transition_proved.go b/packages/taiko-client/prover/event_handler/transition_proved.go index 21416b5c513..2c520ad5d14 100644 --- a/packages/taiko-client/prover/event_handler/transition_proved.go +++ b/packages/taiko-client/prover/event_handler/transition_proved.go @@ -48,6 +48,10 @@ func (h *TransitionProvedEventHandler) Handle( ) error { metrics.ProverReceivedProvenBlockGauge.Set(float64(e.BlockId.Uint64())) + if e.Tier >= encoding.TierGuardianMinorityID { + metrics.ProverProvenByGuardianGauge.Add(1) + } + // If this prover is in contest mode, we check the validity of this proof and if it's invalid, // contest it with a higher tier proof. if !h.contesterMode {