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

Commit

Permalink
fix(prover): fix some typos (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshliu committed Feb 13, 2023
1 parent 3e2b02f commit 040e50a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prover/proof_producer/zkevm_rpcd_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (d *ZkevmRpcdProducer) RequestProof(
if d.CustomProofHook != nil {
proof, err = d.CustomProofHook()
} else {
proof, err = d.callProverDeamon(opts)
proof, err = d.callProverDaemon(opts)
}
if err != nil {
return err
Expand All @@ -124,8 +124,8 @@ func (d *ZkevmRpcdProducer) RequestProof(
return nil
}

// callProverDeamon keeps polling the proverd service to get the requested proof.
func (d *ZkevmRpcdProducer) callProverDeamon(opts *ProofRequestOptions) ([]byte, error) {
// callProverDaemon keeps polling the proverd service to get the requested proof.
func (d *ZkevmRpcdProducer) callProverDaemon(opts *ProofRequestOptions) ([]byte, error) {
var (
proof []byte
start = time.Now()
Expand All @@ -143,7 +143,7 @@ func (d *ZkevmRpcdProducer) callProverDeamon(opts *ProofRequestOptions) ([]byte,
return errProofGenerating
}
proof = d.outputToCalldata(output)
log.Info("Proof generated", "heigth", opts.Height, "time", time.Since(start))
log.Info("Proof generated", "height", opts.Height, "time", time.Since(start))
return nil
}, backoff.NewConstantBackOff(10*time.Second)); err != nil {
return nil, err
Expand Down

0 comments on commit 040e50a

Please sign in to comment.