Skip to content

Commit

Permalink
chore(breaking): add EIGENDA_PROXY prefix to memstore flags (#121)
Browse files Browse the repository at this point in the history
* chore: add EIGENDA_PROXY prefix to memstore flags
needed for consistency with all other flags

* fix: add EIGENDA_PROXY prefix in the .env example files
  • Loading branch information
samlaf authored Sep 16, 2024
1 parent 7e659af commit 09497a9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .env.example.holesky
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ EIGENDA_PROXY_SERVICE_MANAGER_ADDR=0xD4A7E1Bd8015057293f0D0A557088c286942e84b
# EIGENDA_PROXY_LOG_PID=false

# Whether to use mem-store for DA logic
# MEMSTORE_ENABLED=false
# EIGENDA_PROXY_MEMSTORE_ENABLED=false

# Duration that a blob/commitment pair are allowed to live
# MEMSTORE_EXPIRATION=25m0s
# EIGENDA_PROXY_MEMSTORE_EXPIRATION=25m0s

# Metrics listening address
# EIGENDA_PROXY_METRICS_ADDR=0.0.0.0
Expand Down
4 changes: 2 additions & 2 deletions .env.example.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ EIGENDA_PROXY_SERVICE_MANAGER_ADDR=0x870679E138bCdf293b7Ff14dD44b70FC97e12fc0
# EIGENDA_PROXY_LOG_PID=false

# Whether to use mem-store for DA logic
# MEMSTORE_ENABLED=false
# EIGENDA_PROXY_MEMSTORE_ENABLED=false

# Duration that a blob/commitment pair are allowed to live
# MEMSTORE_EXPIRATION=25m0s
# EIGENDA_PROXY_MEMSTORE_EXPIRATION=25m0s

# Metrics listening address
# EIGENDA_PROXY_METRICS_ADDR=0.0.0.0
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ In order to disperse to the EigenDA network in production, or at high throughput
| `--log.format` | `text` | `$EIGENDA_PROXY_LOG_FORMAT` | Format the log output. Supported formats: 'text', 'terminal', 'logfmt', 'json', 'json-pretty'. |
| `--log.level` | `INFO` | `$EIGENDA_PROXY_LOG_LEVEL` | The lowest log level that will be output. |
| `--log.pid` | `false` | `$EIGENDA_PROXY_LOG_PID` | Show pid in the log. |
| `--memstore.enabled` | `false` | `$MEMSTORE_ENABLED` | Whether to use mem-store for DA logic. |
| `--memstore.expiration` | `25m0s` | `$MEMSTORE_EXPIRATION` | Duration that a mem-store blob/commitment pair are allowed to live. |
| `--memstore.put-latency` | `0` | `$MEMSTORE_PUT_LATENCY` | Artificial latency added for memstore backend to mimic EigenDA's dispersal latency. |
| `--memstore.get-latency` | `0` | `$MEMSTORE_GET_LATENCY` | Artificial latency added for memstore backend to mimic EigenDA's retrieval latency. |
| `--memstore.enabled` | `false` | `$EIGENDA_PROXY_MEMSTORE_ENABLED` | Whether to use mem-store for DA logic. |
| `--memstore.expiration` | `25m0s` | `$EIGENDA_PROXY_MEMSTORE_EXPIRATION` | Duration that a mem-store blob/commitment pair are allowed to live. |
| `--memstore.put-latency` | `0` | `$EIGENDA_PROXY_MEMSTORE_PUT_LATENCY` | Artificial latency added for memstore backend to mimic EigenDA's dispersal latency. |
| `--memstore.get-latency` | `0` | `$EIGENDA_PROXY_MEMSTORE_GET_LATENCY` | Artificial latency added for memstore backend to mimic EigenDA's retrieval latency. |
| `--metrics.addr` | `"0.0.0.0"` | `$EIGENDA_PROXY_METRICS_ADDR` | Metrics listening address. |
| `--metrics.enabled` | `false` | `$EIGENDA_PROXY_METRICS_ENABLED` | Enable the metrics server. |
| `--metrics.port` | `7300` | `$EIGENDA_PROXY_METRICS_PORT` | Metrics listening port. |
Expand Down
8 changes: 4 additions & 4 deletions server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,25 +464,25 @@ func CLIFlags() []cli.Flag {
&cli.BoolFlag{
Name: MemstoreFlagName,
Usage: "Whether to use mem-store for DA logic.",
EnvVars: []string{"MEMSTORE_ENABLED"},
EnvVars: prefixEnvVars("MEMSTORE_ENABLED"),
},
&cli.DurationFlag{
Name: MemstoreExpirationFlagName,
Usage: "Duration that a mem-store blob/commitment pair are allowed to live.",
Value: 25 * time.Minute,
EnvVars: []string{"MEMSTORE_EXPIRATION"},
EnvVars: prefixEnvVars("MEMSTORE_EXPIRATION"),
},
&cli.DurationFlag{
Name: MemstorePutLatencyFlagName,
Usage: "Artificial latency added for memstore backend to mimic EigenDA's dispersal latency.",
Value: 0,
EnvVars: []string{"MEMSTORE_PUT_LATENCY"},
EnvVars: prefixEnvVars("MEMSTORE_PUT_LATENCY"),
},
&cli.DurationFlag{
Name: MemstoreGetLatencyFlagName,
Usage: "Artificial latency added for memstore backend to mimic EigenDA's retrieval latency.",
Value: 0,
EnvVars: []string{"MEMSTORE_GET_LATENCY"},
EnvVars: prefixEnvVars("MEMSTORE_GET_LATENCY"),
},
&cli.StringSliceFlag{
Name: FallbackTargets,
Expand Down

0 comments on commit 09497a9

Please sign in to comment.