Skip to content

Commit

Permalink
chore: remove SEQUENCE_SENDER component id
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Dec 31, 2024
1 parent 210bc2a commit 13b2291
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
3 changes: 1 addition & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ var (
Aliases: []string{"co"},
Usage: "List of components to run",
Required: false,
Value: cli.NewStringSlice(common.SEQUENCE_SENDER,
common.AGGORACLE, common.BRIDGE, common.AGGSENDER),
Value: cli.NewStringSlice(common.AGGORACLE, common.AGGSENDER, common.BRIDGE),
}
saveConfigFlag = cli.StringFlag{
Name: config.FlagSaveConfigPath,
Expand Down
14 changes: 7 additions & 7 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ func runL1InfoTreeSyncerIfNeeded(
l1Client *ethclient.Client,
reorgDetector *reorgdetector.ReorgDetector,
) *l1infotreesync.L1InfoTreeSync {
if !isNeeded([]string{aggkitcommon.AGGORACLE, aggkitcommon.BRIDGE,
aggkitcommon.SEQUENCE_SENDER, aggkitcommon.AGGSENDER, aggkitcommon.L1INFOTREESYNC}, components) {
if !isNeeded([]string{
aggkitcommon.AGGORACLE, aggkitcommon.AGGSENDER,
aggkitcommon.BRIDGE, aggkitcommon.L1INFOTREESYNC}, components) {
return nil
}
l1InfoTreeSync, err := l1infotreesync.New(
Expand Down Expand Up @@ -294,9 +295,9 @@ func runL1InfoTreeSyncerIfNeeded(

func runL1ClientIfNeeded(components []string, urlRPCL1 string) *ethclient.Client {
if !isNeeded([]string{
aggkitcommon.SEQUENCE_SENDER,
aggkitcommon.AGGORACLE, aggkitcommon.BRIDGE,
aggkitcommon.AGGORACLE,
aggkitcommon.AGGSENDER,
aggkitcommon.BRIDGE,
aggkitcommon.L1INFOTREESYNC,
}, components) {
return nil
Expand Down Expand Up @@ -345,9 +346,8 @@ func runReorgDetectorL1IfNeeded(
cfg *reorgdetector.Config,
) (*reorgdetector.ReorgDetector, chan error) {
if !isNeeded([]string{
aggkitcommon.SEQUENCE_SENDER,
aggkitcommon.AGGORACLE, aggkitcommon.BRIDGE, aggkitcommon.AGGSENDER,
aggkitcommon.L1INFOTREESYNC},
aggkitcommon.AGGORACLE, aggkitcommon.AGGSENDER,
aggkitcommon.BRIDGE, aggkitcommon.L1INFOTREESYNC},
components) {
return nil, nil
}
Expand Down
2 changes: 0 additions & 2 deletions common/components.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package common

const (
// SEQUENCE_SENDER name to identify the sequence-sender component
SEQUENCE_SENDER = "sequence-sender" //nolint:stylecheck
// AGGORACLE name to identify the aggoracle component
AGGORACLE = "aggoracle"
// BRIDGE name to identify the bridge component (have RPC)
Expand Down

0 comments on commit 13b2291

Please sign in to comment.