Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dont Merge] Updates L2EP staleness threshold to 10 minutes #3287

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cold-penguins-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/layer2-sequencer-health-adapter': minor
---

Updates block height staleness threshold (delta) to 10 minutes
2 changes: 1 addition & 1 deletion packages/sources/layer2-sequencer-health/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Adapter that checks the Layer 2 Sequencer status

| Required? | Name | Description | Options | Defaults to |
| :-------: | :-------------------------------: | :-----------------------------------------------------------------------------: | :-----: | :--------------------------------------------------------------: |
| | `DELTA` | Maximum time in milliseconds from last seen block to consider sequencer healthy | | 120000 (2 min) |
| | `DELTA` | Maximum time in milliseconds from last seen block to consider sequencer healthy | | 600000 (10 min) |
| | `DELTA_BLOCKS` | Maximum allowed number of blocks that Nodes can fall behind | | 6 |
| | `NETWORK_TIMEOUT_LIMIT` | Maximum time in milliseconds to wait for a transaction receipt | | 5000 (5 secs) |
| | `ARBITRUM_RPC_ENDPOINT` | Arbitrum RPC Endpoint | | https://arb1.arbitrum.io/rpc |
Expand Down
2 changes: 1 addition & 1 deletion packages/sources/layer2-sequencer-health/schemas/env.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"properties": {
"DELTA": {
"type": "number",
"default": 180000
"default": 600000
},
"ARBITRUM_RPC_ENDPOINT": {
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions packages/sources/layer2-sequencer-health/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const adapterContext: AdapterContext = { name: NAME, envDefaultOverrides

export const DEFAULT_ENDPOINT = 'health'

// 2 minutes
export const DEFAULT_DELTA_TIME = 2 * 60 * 1000
// 10 minutes
export const DEFAULT_DELTA_TIME = 10 * 60 * 1000
// Blocks that replica nodes can fall behind
export const DEFAULT_DELTA_BLOCKS = 6
// milliseconds to consider a timeout transaction (10 secs)
Expand Down
Loading