Skip to content

Commit 1e1d9e5

Browse files
committed
Update min cache timeout
1 parent 46db5c3 commit 1e1d9e5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/gas/fee_history_estimator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const (
2626
MinimumBumpPercentage = 10 // based on geth's spec
2727
ConnectivityPercentile = 85
2828
BaseFeeBufferPercentage = 40
29-
MinimumCacheTimeout = 250 * time.Millisecond
29+
MinimumCacheTimeout = 500 * time.Millisecond
3030
)
3131

3232
type FeeHistoryEstimatorConfig struct {

pkg/gas/fee_history_estimator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestFeeHistoryEstimatorLifecycle(t *testing.T) {
5656
assert.ErrorContains(t, u.Start(t.Context()), "RewardPercentile")
5757
})
5858

59-
t.Run("fails to start if CacheTimeout is not more than 0", func(t *testing.T) {
59+
t.Run("fails to start if CacheTimeout is not more than MinimumCacheTimeout", func(t *testing.T) {
6060
cfg := gas.FeeHistoryEstimatorConfig{
6161
BumpPercent: 20,
6262
RewardPercentile: 10,

0 commit comments

Comments
 (0)