diff --git a/feeds/timeline/timeline_test.go b/feeds/timeline/timeline_test.go index 575263f2..82fcf69a 100644 --- a/feeds/timeline/timeline_test.go +++ b/feeds/timeline/timeline_test.go @@ -64,6 +64,7 @@ func TestTimeline_CalculateLag(t *testing.T) { r := require.New(t) blockTimeline := NewBlockTimeline(1, 1000000) + blockTimeline.threshold = 10 start := time.Now().UTC().Truncate(time.Minute) @@ -169,7 +170,7 @@ func TestTimeline_CalculateLag(t *testing.T) { r.Equal(float64(1+5+9+13+15+2)/float64(6), lag) estimate, ok := blockTimeline.EstimateBlockScore() r.True(ok) - r.Equal(0.0625, estimate) + r.Equal(0.25, estimate) testDelay := time.Second blockTimeline.delay = &testDelay diff --git a/protocol/settings/chain.go b/protocol/settings/chain.go index 1c3d2e03..0ff25f2d 100644 --- a/protocol/settings/chain.go +++ b/protocol/settings/chain.go @@ -33,7 +33,7 @@ var allChainSettings = []ChainSettings{ EnableTrace: true, JsonRpcRateLimiting: defaultRateLimiting, InspectionInterval: 50, - BlockThreshold: 4, + BlockThreshold: 5, JSONRPCRetryIntervalSeconds: 8, }, { @@ -78,7 +78,7 @@ var allChainSettings = []ChainSettings{ EnableTrace: false, JsonRpcRateLimiting: defaultRateLimiting, InspectionInterval: 1500, - BlockThreshold: 20, + BlockThreshold: 40, JSONRPCRetryIntervalSeconds: 4, }, {