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

Commit

Permalink
feat(prover): add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Mar 12, 2024
1 parent 20a221b commit 22ef2ad
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Push docker image to GCR"

on:
push:
branches: [main]
branches: [main,more-logs]
tags:
- "v*"

Expand Down
4 changes: 3 additions & 1 deletion prover/proof_submitter/proof_submitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ func (s *ProofSubmitter) SubmitProof(
"New block proof",
"blockID", proofWithHeader.BlockID,
"proposer", proofWithHeader.Meta.Coinbase,
"hash", proofWithHeader.Header.Hash(),
"parentHash", proofWithHeader.Header.ParentHash,
"hash", proofWithHeader.Opts.BlockHash,
"stateRoot", proofWithHeader.Opts.StateRoot,
"proof", common.Bytes2Hex(proofWithHeader.Proof),
"tier", proofWithHeader.Tier,
)
Expand Down
16 changes: 13 additions & 3 deletions prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,12 @@ func (p *Prover) contestProofOp(req *proofProducer.ContestRequestBody) error {
req.Meta,
req.Tier,
); err != nil {
log.Error("Request new proof contest error", "blockID", req.BlockID, "error", err)
log.Error(
"Request new proof contest error",
"blockID", req.BlockID,
"minTier", req.Meta.MinTier,
"error", err,
)
return err
}

Expand All @@ -378,7 +383,7 @@ func (p *Prover) requestProofOp(e *bindings.TaikoL1ClientBlockProposed, minTier
}
if submitter := p.selectSubmitter(minTier); submitter != nil {
if err := submitter.RequestProof(p.ctx, e); err != nil {
log.Error("Request new proof error", "blockID", e.BlockId, "error", err)
log.Error("Request new proof error", "blockID", e.BlockId, "minTier", e.Meta.MinTier, "error", err)
return err
}

Expand All @@ -397,7 +402,12 @@ func (p *Prover) submitProofOp(proofWithHeader *proofProducer.ProofWithHeader) e
}

if err := submitter.SubmitProof(p.ctx, proofWithHeader); err != nil {
log.Error("Submit proof error", "error", err)
log.Error(
"Submit proof error",
"blockID", proofWithHeader.BlockID,
"minTier", proofWithHeader.Meta.MinTier,
"error", err,
)
return err
}

Expand Down

0 comments on commit 22ef2ad

Please sign in to comment.