@@ -3,14 +3,15 @@ package config
33import (
44 "context"
55 "fmt"
6+ "time"
7+
68 "github.com/datachainlab/ethereum-ibc-relay-chain/pkg/relay/ethereum"
79 "github.com/ethereum/go-ethereum/common"
810 "github.com/hyperledger-labs/yui-relayer/core"
911 "github.com/hyperledger-labs/yui-relayer/coreutil"
1012 "github.com/hyperledger-labs/yui-relayer/log"
1113 "github.com/hyperledger-labs/yui-relayer/otelcore"
1214 "go.opentelemetry.io/otel"
13- "time"
1415
1516 "github.com/datachainlab/optimism-ibc-relay-prover/module/prover"
1617 "github.com/datachainlab/optimism-ibc-relay-prover/module/prover/l1"
@@ -26,23 +27,29 @@ func (c *ProverConfig) Build(chain core.Chain) (core.Prover, error) {
2627 }
2728
2829 logger := log .GetLogger ().WithChain (l2Chain .ChainID ()).WithModule (prover .ModuleName )
29- l1Client , err := l1 .NewL1Client (context .Background (), c .L1BeaconEndpoint , c .L1ExecutionEndpoint , c .MinimalForkSched , logger )
30+ l1Client , err := l1 .NewL1Client (
31+ context .Background (),
32+ c .L1BeaconEndpoint ,
33+ c .L1ExecutionEndpoint ,
34+ c .PreimageMakerTimeout ,
35+ c .PreimageMakerEndpoint ,
36+ c .MinimalForkSched ,
37+ logger ,
38+ )
3039 if err != nil {
3140 return nil , err
3241 }
3342 l2Client := l2 .NewL2Client (
3443 l2Chain ,
35- c .L1ExecutionEndpoint ,
3644 c .OpNodeTimeout ,
3745 c .PreimageMakerTimeout ,
3846 c .PreimageMakerEndpoint ,
3947 c .OpNodeEndpoint ,
4048 logger ,
4149 )
4250 inner := prover .NewProver (l2Chain , l1Client , l2Client ,
43- c .TrustingPeriod , c .RefreshThresholdRate , c .MaxClockDrift , c .MaxHeaderConcurrency , c .MaxL2NumsForPreimage ,
44- common .HexToAddress (c .DisputeGameFactoryAddress ),
45- logger )
51+ c .TrustingPeriod , c .RefreshThresholdRate , c .MaxClockDrift , c .MaxHeaderConcurrency ,
52+ common .HexToAddress (c .DisputeGameFactoryAddress ), logger )
4653 tracer := otel .Tracer ("github.com/datachainlab/optimism-ibc-relay-prover/module" )
4754 return otelcore .NewProver (inner , l2Chain .ChainID (), tracer ), nil
4855}
0 commit comments