Skip to content

Commit

Permalink
Merge branch 'main' into deploy-proverset-guide
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerLamTd authored Jun 29, 2024
2 parents 264b042 + c88fcd1 commit 2e8801e
Show file tree
Hide file tree
Showing 4 changed files with 1,056 additions and 1,043 deletions.
4 changes: 0 additions & 4 deletions packages/taiko-client/prover/event_handler/block_verified.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions packages/taikoon-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"test:integration": "playwright test",
"test:unit": "vitest",
"start": "npm run generate:abi && vite dev --open --host 0.0.0.0",
"start:prod": "vite dev --open --host 0.0.0.0 --mode production",
"generate:abi": "cd ../nfts && pnpm compile && cd - && wagmi generate"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 2e8801e

Please sign in to comment.