Skip to content

Commit

Permalink
Updates L2EP staleness threshold to 10 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-mehany committed May 7, 2024
1 parent d285f5b commit b8c2a23
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
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

0 comments on commit b8c2a23

Please sign in to comment.