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

fix(flag): add a missing flag configuration for prover #567

Merged
merged 4 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/flags/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ var (
// ProverFlags All prover flags.
var ProverFlags = MergeFlags(CommonFlags, []cli.Flag{
L1HTTPEndpoint,
L1BeaconEndpoint,
L2WSEndpoint,
L2HTTPEndpoint,
ZkEvmRpcdEndpoint,
Expand Down
13 changes: 7 additions & 6 deletions prover/proof_producer/sgx_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,13 @@ func (s *SGXProofProducer) requestProof(opts *ProofRequestOptions) (*RaikoHostOu
ID: common.Big1,
Method: "proof",
Params: []*SGXRequestProofBodyParam{{
Type: "Sgx",
Block: opts.BlockID,
L2RPC: s.L2Endpoint,
L1RPC: s.L1Endpoint,
Prover: opts.ProverAddress.Hex()[2:],
Graffiti: opts.Graffiti,
Type: "Sgx",
Block: opts.BlockID,
L2RPC: s.L2Endpoint,
L1RPC: s.L1Endpoint,
L1BeaconRPC: s.L1BeaconEndpoint,
Prover: opts.ProverAddress.Hex()[2:],
Graffiti: opts.Graffiti,
}},
}

Expand Down
Loading