Skip to content

Commit

Permalink
feat: rename some vars
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Aug 30, 2024
1 parent ca07f02 commit e7d4d64
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions packages/taiko-client/cmd/flags/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ var (
Category: commonCategory,
EnvVars: []string{"L1_WS"},
}
L1PrivateTxEndpoint = &cli.StringFlag{
Name: "l1.privateTx",
Usage: "RPC endpoint of a L1 private tx ethereum node",
L1PrivateEndpoint = &cli.StringFlag{
Name: "l1.private",
Usage: "RPC endpoint of a L1 node with private mempool",
Category: commonCategory,
EnvVars: []string{"L1_PRIVATE_TX"},
EnvVars: []string{"L1_PRIVATE"},
}
L2WSEndpoint = &cli.StringFlag{
Name: "l2.ws",
Expand Down Expand Up @@ -173,7 +173,7 @@ var CommonFlags = []cli.Flag{
BackOffMaxRetries,
BackOffRetryInterval,
RPCTimeout,
L1PrivateTxEndpoint,
L1PrivateEndpoint,
}

// MergeFlags merges the given flag slices.
Expand Down
2 changes: 1 addition & 1 deletion packages/taiko-client/proposer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func NewConfigFromCliContext(c *cli.Context) (*Config, error) {
c,
),
PrivateTxmgrConfigs: pkgFlags.InitTxmgrConfigsFromCli(
c.String(flags.L1PrivateTxEndpoint.Name),
c.String(flags.L1PrivateEndpoint.Name),
l1ProposerPrivKey,
c,
),
Expand Down
2 changes: 1 addition & 1 deletion packages/taiko-client/proposer/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (p *Proposer) InitFromConfig(

if privateTxMgr == nil && cfg.PrivateTxmgrConfigs != nil && len(cfg.PrivateTxmgrConfigs.L1RPCURL) > 0 {
if privateTxMgr, err = txmgr.NewSimpleTxManager(
"privateTxProposer",
"privateMempoolProposer",
log.Root(),
&metrics.TxMgrMetrics,
*cfg.PrivateTxmgrConfigs,
Expand Down
2 changes: 1 addition & 1 deletion packages/taiko-client/prover/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func NewConfigFromCliContext(c *cli.Context) (*Config, error) {
c,
),
PrivateTxmgrConfigs: pkgFlags.InitTxmgrConfigsFromCli(
c.String(flags.L1PrivateTxEndpoint.Name),
c.String(flags.L1PrivateEndpoint.Name),
l1ProverPrivKey,
c,
),
Expand Down
2 changes: 1 addition & 1 deletion packages/taiko-client/prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func InitFromConfig(
} else {
if cfg.PrivateTxmgrConfigs != nil && len(cfg.PrivateTxmgrConfigs.L1RPCURL) > 0 {
if p.privateTxmgr, err = txmgr.NewSimpleTxManager(
"privateTxProver",
"privateMempoolProver",
log.Root(),
&metrics.TxMgrMetrics,
*cfg.PrivateTxmgrConfigs,
Expand Down

0 comments on commit e7d4d64

Please sign in to comment.