Skip to content

Commit 687efa7

Browse files
refactor(taiko-client): refactor generated proof logs (#19366)
Co-authored-by: David <[email protected]>
1 parent 7fffb66 commit 687efa7

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

packages/taiko-client/prover/proof_producer/compose_proof_producer.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -269,16 +269,16 @@ func (s *ComposeProofProducer) requestBatchProof(
269269
)
270270
}
271271

272-
proofType = output.ProofType
273-
log.Info(
274-
"Batch proof generated",
275-
"isAggregation", isAggregation,
276-
"proofType", proofType,
277-
"start", batches[0].BatchID,
278-
"end", batches[len(batches)-1].BatchID,
279-
"time", time.Since(requestAt),
280-
)
281272
if !alreadyGenerated {
273+
proofType = output.ProofType
274+
log.Info(
275+
"Batch proof generated",
276+
"isAggregation", isAggregation,
277+
"proofType", proofType,
278+
"start", batches[0].BatchID,
279+
"end", batches[len(batches)-1].BatchID,
280+
"time", time.Since(requestAt),
281+
)
282282
// Update metrics.
283283
updateProvingMetrics(proofType, requestAt, isAggregation)
284284
}

packages/taiko-client/prover/proof_producer/sgx_geth_proof_producer.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,15 @@ func (s *SgxGethProofProducer) requestBatchProof(
149149
)
150150
}
151151

152-
log.Info(
153-
"Batch proof generated",
154-
"start", batches[0].BatchID,
155-
"end", batches[len(batches)-1].BatchID,
156-
"isAggregation", isAggregation,
157-
"proofType", proofType,
158-
"time", time.Since(requestAt),
159-
)
160-
161152
if !alreadyGenerated {
153+
log.Info(
154+
"Batch proof generated",
155+
"start", batches[0].BatchID,
156+
"end", batches[len(batches)-1].BatchID,
157+
"isAggregation", isAggregation,
158+
"proofType", proofType,
159+
"time", time.Since(requestAt),
160+
)
162161
// Update metrics.
163162
updateProvingMetrics(proofType, requestAt, isAggregation)
164163
}

0 commit comments

Comments
 (0)