Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

feat: update canceling proof logic #218

Merged
merged 1 commit into from
May 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,10 @@ func (p *Prover) onBlockVerified(ctx context.Context, event *bindings.TaikoL1Cli
func (p *Prover) onBlockProven(ctx context.Context, event *bindings.TaikoL1ClientBlockProven) error {
metrics.ProverReceivedProvenBlockGauge.Update(event.Id.Int64())
// if oracle prover, dont cancel proof.
if event.Prover == p.oracleProverAddress || event.Prover == p.systemProverAddress {
if event.Prover == p.oracleProverAddress ||
event.Prover == p.systemProverAddress ||
event.Prover == common.HexToAddress("0x0000000000000000000000000000000000000000") ||
event.Prover == common.HexToAddress("0x0000000000000000000000000000000000000001") {
return nil
}

Expand Down