Commit 8a2c24a9 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

l2geth: shorter default timestamp refresh (#531)

* l2geth: set default timestamp refresh threshold to 3 mins

* l2geth: add changeset
parent a0a7956e
---
"@eth-optimism/l2geth": patch
---
Set default timestamp refresh threshold to 3 minutes
...@@ -846,7 +846,7 @@ var ( ...@@ -846,7 +846,7 @@ var (
RollupTimstampRefreshFlag = cli.DurationFlag{ RollupTimstampRefreshFlag = cli.DurationFlag{
Name: "rollup.timestamprefresh", Name: "rollup.timestamprefresh",
Usage: "Interval for refreshing the timestamp", Usage: "Interval for refreshing the timestamp",
Value: time.Minute * 15, Value: time.Minute * 3,
EnvVar: "ROLLUP_TIMESTAMP_REFRESH", EnvVar: "ROLLUP_TIMESTAMP_REFRESH",
} }
// Flag to enable verifier mode // Flag to enable verifier mode
......
...@@ -75,8 +75,8 @@ func NewSyncService(ctx context.Context, cfg Config, txpool *core.TxPool, bc *co ...@@ -75,8 +75,8 @@ func NewSyncService(ctx context.Context, cfg Config, txpool *core.TxPool, bc *co
} }
timestampRefreshThreshold := cfg.TimestampRefreshThreshold timestampRefreshThreshold := cfg.TimestampRefreshThreshold
if timestampRefreshThreshold == 0 { if timestampRefreshThreshold == 0 {
log.Info("Sanitizing timestamp refresh threshold to 15 minutes") log.Info("Sanitizing timestamp refresh threshold to 3 minutes")
timestampRefreshThreshold = time.Minute * 15 timestampRefreshThreshold = time.Minute * 3
} }
// Layer 2 chainid // Layer 2 chainid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment