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

Commit

Permalink
feat(bindings): update Go contract bindings && add more logs for prov…
Browse files Browse the repository at this point in the history
…er (#632)
  • Loading branch information
davidtaikocha authored Mar 12, 2024
1 parent 26ed379 commit 1c90c6a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bindings/.githead
Original file line number Diff line number Diff line change
@@ -1 +1 @@
627bf01fdc82d0fa86a1705920deae4e9b8dcdb3
7b04e648b572e0eac3533ee3c80a27cc0ba36c91
26 changes: 13 additions & 13 deletions bindings/gen_taiko_token.go

Large diffs are not rendered by default.

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 1c90c6a

Please sign in to comment.