Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zjg555543 committed Dec 20, 2024
1 parent cb1b873 commit 37b977a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func New(
aggLayerClient: aggLayerClient,
sequencerPrivateKey: sequencerPrivateKey,
witnessRetrievalChan: make(chan state.DBBatch),
rpcClient: rpc.NewBatchEndpoints(strings.Split(cfg.RPCURLS, ","), cfg.RPCTimeout.Duration),
rpcClient: rpc.NewBatchEndpoints(strings.Split(cfg.RPCURL, ","), cfg.RPCTimeout.Duration),
}

if a.ctx == nil {
Expand Down
4 changes: 2 additions & 2 deletions aggregator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ type Config struct {
// final gas: 1100
GasOffset uint64 `mapstructure:"GasOffset"`

// RPCURLS is the URL of the RPC server
RPCURLS string `mapstructure:"RPCURLS"`
// RPCURL is the URL of the RPC server
RPCURL string `mapstructure:"RPCURL"`

// RPCTimeout is the timeout for the L2 RPC calls
RPCTimeout types.Duration `mapstructure:"RPCTimeout"`
Expand Down
4 changes: 2 additions & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ func createSequenceSender(
logger := log.WithFields("module", cdkcommon.SEQUENCE_SENDER)

// Check config
if cfg.SequenceSender.RPCURLS == "" {
logger.Fatal("Required field RPCURLS is empty in sequence sender config")
if cfg.SequenceSender.RPCURL == "" {
logger.Fatal("Required field RPCURL is empty in sequence sender config")
}

ethman, err := etherman.NewClient(ethermanconfig.Config{
Expand Down
4 changes: 2 additions & 2 deletions config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ WaitPeriodPurgeTxFile = "15m"
MaxPendingTx = 1
MaxBatchesForL1 = 300
BlockFinality = "FinalizedBlock"
RPCURLS = "{{L2URL}}"
RPCURL = "{{L2URL}}"
RPCTimeout = "60s"
GetBatchWaitInterval = "10s"
[SequenceSender.EthTxManager]
Expand Down Expand Up @@ -131,7 +131,7 @@ SenderAddress = "{{SenderProofToL1Addr}}"
CleanupLockedProofsInterval = "2m"
GeneratingProofCleanupThreshold = "10m"
GasOffset = 0
RPCURLS = "{{L2URL}}"
RPCURL = "{{L2URL}}"
RPCTimeout = "60s"
WitnessURL = "{{WitnessURL}}"
UseFullWitness = false
Expand Down
4 changes: 2 additions & 2 deletions sequencesender/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ type Config struct {
// BlockFinality indicates the status of the blocks that will be queried in order to sync
BlockFinality string `jsonschema:"enum=LatestBlock, enum=SafeBlock, enum=PendingBlock, enum=FinalizedBlock, enum=EarliestBlock" mapstructure:"BlockFinality"` //nolint:lll

// RPCURLS is the URL of the RPC server
RPCURLS string `mapstructure:"RPCURLS"`
// RPCURL is the URL of the RPC server
RPCURL string `mapstructure:"RPCURL"`

// RPCTimeout is the timeout for the L2 RPC calls
RPCTimeout types.Duration `mapstructure:"RPCTimeout"`
Expand Down
2 changes: 1 addition & 1 deletion sequencesender/sequencesender.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func New(cfg Config, logger *log.Logger,
sequenceData: make(map[uint64]*sequenceData),
validStream: false,
TxBuilder: txBuilder,
rpcClient: rpc.NewBatchEndpoints(strings.Split(cfg.RPCURLS, ","), cfg.RPCTimeout.Duration),
rpcClient: rpc.NewBatchEndpoints(strings.Split(cfg.RPCURL, ","), cfg.RPCTimeout.Duration),
}

logger.Infof("TxBuilder configuration: %s", txBuilder.String())
Expand Down

0 comments on commit 37b977a

Please sign in to comment.