From 6d6d9c60e3caf498e1f1f8a9c6d5e8c0020814b9 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 23 Feb 2024 16:03:07 +0800 Subject: [PATCH] fix(flag): add a missing flag configuration for prover (#567) --- cmd/flags/prover.go | 1 + prover/proof_producer/sgx_producer.go | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cmd/flags/prover.go b/cmd/flags/prover.go index 3a9abd766..9395fa391 100644 --- a/cmd/flags/prover.go +++ b/cmd/flags/prover.go @@ -205,6 +205,7 @@ var ( // ProverFlags All prover flags. var ProverFlags = MergeFlags(CommonFlags, []cli.Flag{ L1HTTPEndpoint, + L1BeaconEndpoint, L2WSEndpoint, L2HTTPEndpoint, ZkEvmRpcdEndpoint, diff --git a/prover/proof_producer/sgx_producer.go b/prover/proof_producer/sgx_producer.go index 5df3278cf..511a33ab1 100644 --- a/prover/proof_producer/sgx_producer.go +++ b/prover/proof_producer/sgx_producer.go @@ -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, }}, }