Skip to content

Commit

Permalink
feat(validator): remove check SP1 version from prover and witness gen…
Browse files Browse the repository at this point in the history
…erator
  • Loading branch information
seolaoh committed Feb 4, 2025
1 parent c41ac14 commit 9d7a3c8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions kroma-validator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,17 +275,14 @@ func NewValidatorConfig(cfg CLIConfig, l log.Logger, m metrics.Metricer) (*Confi
}
witnessGenerator = chal.NewWitnessGenerator(wc)

proverSpec, err := zkVMProofFetcher.Spec(ctx)
_, err = zkVMProofFetcher.Spec(ctx)
if err != nil {
return nil, fmt.Errorf("failed to request spec of zkVM prover: %w", err)
}
witnessGenSpec, err := witnessGenerator.Spec(ctx)
_, err = witnessGenerator.Spec(ctx)
if err != nil {
return nil, fmt.Errorf("failed to request spec of witness generator: %w", err)
}
if proverSpec.SP1Version != witnessGenSpec.SP1Version {
return nil, errors.New("SP1 version of zkVM prover and witness generator mismatched")
}
} else {
clientOpt := rpc.WithHTTPClient(&http.Client{
Timeout: cfg.ZkEVMNetworkTimeout,
Expand Down

0 comments on commit 9d7a3c8

Please sign in to comment.