You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/api/websocket.md
+24-6Lines changed: 24 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -324,9 +324,11 @@ Frankendancer client will always publish `null` for this message
324
324
|*Once*|`CatchUpHistory`| see below |
325
325
326
326
This validator records a history of all slots that were received from
327
-
turbine as well as slots for which a repair request was made while it is
327
+
turbine or repair responses, as well as shred events that occurred while
328
328
catching up. After catching up, slots are no longer recorded in this
329
-
history.
329
+
history. For repair and turbine slots, the history is available for the
330
+
lifetime of the validator. Shred events are only available if the
331
+
validator is in the catching up phase.
330
332
331
333
::: details Example
332
334
@@ -336,13 +338,29 @@ history.
336
338
"key": "catch_up_history",
337
339
"value": {
338
340
"repair": [11, 12, 13, ...],
339
-
"turbine": [21, 22, 23, ...]
341
+
"turbine": [21, 22, 23, ...],
342
+
"shreds": {
343
+
"reference_slot": 289245044,
344
+
"reference_ts": "1739657041588242791",
345
+
"slot_delta": [0, 0],
346
+
"shred_idx": [1234, null],
347
+
"event": [0, 1],
348
+
"event_ts_delta": ["1000000", "2000000"]
349
+
}
340
350
}
341
351
}
342
352
```
343
353
344
354
:::
345
355
356
+
**`CatchUpHistory`**
357
+
| Field | Type | Description |
358
+
|------------|---------------|-------------|
359
+
| repair |`number[]`| A list of all slots for which a repair shred was received that are older than `summary.caught_up_slot`|
360
+
| turbine |`number[]`| A list of all slots for which a turbine shred was received that are older than `summary.caught_up_slot`|
361
+
| shreds |`SlotShreds`| A list of shred events which have occurred for this validator in the past 15 seconds. If the validator has already caught up, or has not yet started catching up, then `null`|
362
+
363
+
346
364
#### `summary.startup_time_nanos`
347
365
| frequency | type | example |
348
366
|-----------|----------|---------------------|
@@ -1594,7 +1612,7 @@ rooted.
1594
1612
#### `slot.live_shreds`
1595
1613
| frequency | type | example |
1596
1614
|-------------|---------------|---------|
1597
-
|*10ms*|`SlotShred[]`| below |
1615
+
|*10ms*|`SlotShreds`| below |
1598
1616
1599
1617
The validator sends a continous stream of update messages with detailed
1600
1618
information about the time and duration of different shred state
@@ -1620,7 +1638,7 @@ and is broadcast to all WebSocket clients.
0 commit comments