Skip to content

Commit

Permalink
Merge pull request #289 from forta-network/caner/increase-arbitrum-th…
Browse files Browse the repository at this point in the history
…reshold

Increase Arbitrum and Ethereum thresholds
  • Loading branch information
canercidam authored Nov 20, 2023
2 parents dd063d9 + 2077edf commit 84a1ca7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion feeds/timeline/timeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions protocol/settings/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var allChainSettings = []ChainSettings{
EnableTrace: true,
JsonRpcRateLimiting: defaultRateLimiting,
InspectionInterval: 50,
BlockThreshold: 4,
BlockThreshold: 5,
JSONRPCRetryIntervalSeconds: 8,
},
{
Expand Down Expand Up @@ -78,7 +78,7 @@ var allChainSettings = []ChainSettings{
EnableTrace: false,
JsonRpcRateLimiting: defaultRateLimiting,
InspectionInterval: 1500,
BlockThreshold: 20,
BlockThreshold: 40,
JSONRPCRetryIntervalSeconds: 4,
},
{
Expand Down

0 comments on commit 84a1ca7

Please sign in to comment.