From 496297bbea0d782d0fcc66dc73499fc600351df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caner=20=C3=87=C4=B1dam?= Date: Mon, 20 Nov 2023 19:09:07 +0300 Subject: [PATCH 1/3] increase arbitrum threshold --- protocol/settings/chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/settings/chain.go b/protocol/settings/chain.go index 1c3d2e03..03ad3ba1 100644 --- a/protocol/settings/chain.go +++ b/protocol/settings/chain.go @@ -78,7 +78,7 @@ var allChainSettings = []ChainSettings{ EnableTrace: false, JsonRpcRateLimiting: defaultRateLimiting, InspectionInterval: 1500, - BlockThreshold: 20, + BlockThreshold: 40, JSONRPCRetryIntervalSeconds: 4, }, { From 7cad445f562a7f7aaf7f8c62e1853082cd6c625e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caner=20=C3=87=C4=B1dam?= Date: Mon, 20 Nov 2023 19:10:00 +0300 Subject: [PATCH 2/3] bump ethereum threshold --- protocol/settings/chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/settings/chain.go b/protocol/settings/chain.go index 03ad3ba1..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, }, { From 2077edf3e09586f6e753a73aae7f39130d646432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caner=20=C3=87=C4=B1dam?= Date: Mon, 20 Nov 2023 19:29:00 +0300 Subject: [PATCH 3/3] fix test --- feeds/timeline/timeline_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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