Compare commits

...

1 Commits

Author SHA1 Message Date
Manu NALEPA
496ddb8015 subscribe-all-attestations-and-sync-subnets 2025-10-13 15:03:32 +02:00
5 changed files with 10 additions and 7 deletions

View File

@@ -0,0 +1,2 @@
### Added
- Rename `--subscribe-all-subnets` into `--subscribe-all-attestation-and-sync-subnets` and set `--subscribe-all-subnets` as an alias.

View File

@@ -229,10 +229,11 @@ var (
Name: "disable-debug-rpc-endpoints",
Usage: "Disables the debug Beacon API namespace.",
}
// SubscribeToAllSubnets defines a flag to specify whether to subscribe to all possible attestation/sync subnets or not.
SubscribeToAllSubnets = &cli.BoolFlag{
Name: "subscribe-all-subnets",
Usage: "Subscribe to all possible attestation and sync subnets.",
// SubscribeToAllAttAndSyncSubnets defines a flag to specify whether to subscribe to all possible attestation/sync subnets or not.
SubscribeToAllAttAndSyncSubnets = &cli.BoolFlag{
Name: "subscribe-all-attestation-and-sync-subnets",
Aliases: []string{"subscribe-all-subnets"},
Usage: "Subscribe to all possible attestation and sync subnets.",
}
// HistoricalSlasherNode is a set of beacon node flags required for performing historical detection with a slasher.
HistoricalSlasherNode = &cli.BoolFlag{

View File

@@ -41,7 +41,7 @@ func Init(c *GlobalFlags) {
func ConfigureGlobalFlags(ctx *cli.Context) {
cfg := &GlobalFlags{}
if ctx.Bool(SubscribeToAllSubnets.Name) {
if ctx.Bool(SubscribeToAllAttAndSyncSubnets.Name) {
log.Warning("Subscribing to all attestation subnets")
cfg.SubscribeToAllSubnets = true
}

View File

@@ -64,7 +64,7 @@ var appFlags = []cli.Flag{
flags.InteropMockEth1DataVotesFlag,
flags.SlotsPerArchivedPoint,
flags.DisableDebugRPCEndpoints,
flags.SubscribeToAllSubnets,
flags.SubscribeToAllAttAndSyncSubnets,
flags.SubscribeAllDataSubnets,
flags.HistoricalSlasherNode,
flags.ChainID,

View File

@@ -106,7 +106,7 @@ var appHelpFlagGroups = []flagGroup{
flags.MaxConcurrentDials,
flags.MinPeersPerSubnet,
flags.MinSyncPeers,
flags.SubscribeToAllSubnets,
flags.SubscribeToAllAttAndSyncSubnets,
flags.SubscribeAllDataSubnets,
},
},