Nitride.xyz
Engineering · November 17, 2026 · 8 min read

Skipped slots: what your bot sees and what to do

A skipped slot can look half-built, complete, or absent in your shred stream, so a bot should treat shred-driven actions as provisional and keep a way to take them back.

Nitride.xyz team

A skipped slot is a slot that ends with no block on the finalized chain. In shreds it appears as a slot that stops partway, never sends its last-in-slot shred, or is jumped over by a later slot's parent offset. Under Alpenglow a complete slot can be skipped too, so every shred-driven action is provisional until finalized.

What a skipped slot looks like in shreds#

A receiver never gets a packet that says "slot skipped" (Solana shreds, explained covers the fields used below). It has to infer it from three shapes in the stream:

  1. Nothing at all. The leader was offline or never started. You see the previous slot, then a silence, then the next leader's shreds. If you keyed state on slot numbers, there is simply no entry.
  2. A partial slot. Shreds arrive for a while and then stop. The final data shred of a slot carries the LAST_SHRED_IN_SLOT flag (0b1100_0000 in the flags byte, which also sets the data-complete bit), and here it never comes. Coding shreds may let you rebuild a few missing data shreds, but they cannot invent ones the leader never produced.
  3. A jump in parent_offset. Every data shred carries a 16-bit parent_offset, the distance back to the block it builds on. When slot 1002 arrives with an offset of 2, its leader built on slot 1000 and left 1001 out of its chain. That is the clearest early signal you get, and it arrives with the first shred of the next leader's block.

None of these is proof by itself. A partial slot may be a gap on your side of the network; detecting gaps and duplicates shows how to tell your own loss apart from slots that closed without a last shred. A parent jump tells you what one leader chose, not what the cluster will finalize. For the background on why slots can end empty at all, slots and leaders covers the leader schedule and the old fork rules.

How Alpenglow decides a slot is skipped#

Since October 21, 2026, Solana has decided this with Votor, the voting half of Alpenglow. Turbine still carries the shreds; what changed is how validators agree on them. SIMD-0326 describes the first round: each validator votes to notarize a block or to skip the slot, depending on whether it saw a valid block before its local timeout. Votes go directly between validators and are aggregated into certificates rather than written into blocks.

A skip certificate needs 60% of stake voting skip or skip-fallback; the full set of thresholds is in anatomy of one Solana slot.

When a block is finalized, the SIMD says its ancestors are finalized with it, and slots omitted from its chain are skipped. That last sentence is the formal version of the parent jump above. One caution: under Alpenglow a leader can switch its parent after its first shreds with an UpdateParent marker in the block, so treat a parent jump as provisional until the block completes.

The timeouts are where it gets interesting. In Agave's Votor code, once a validator knows the parent of a leader's window is ready, it starts timers for the whole four-slot window. One fires early if the leader has not delivered its first FEC set, which treats the leader as crashed. The others give each slot in the window a deadline, one block time apart, after a base allowance (DELTA_TIMEOUT, set to 400 milliseconds in common.rs). A validator that reaches a slot's deadline without a block votes skip. If the network stalls, the code stretches those timeouts by 5% per leader window.

This is why a complete slot can still be skipped. If enough of the stake had not seen the block by its deadline, that stake voted skip, and the last-in-slot shred sitting in your receiver changes nothing. Shreds tell you what a leader produced. Only certificates tell you what the chain kept.

Skips are also part of how the network is managed. The Solana Foundation's page on the move to 200 ms slots says skip rate was the gate for every step: the next reduction would not go ahead if skip rates looked too high.

What to do differently because of Votor#

The general discipline for acting on shreds, tagging each action with its slot, keeping a way to undo it and reconciling at finalized, is covered in a shred is not a confirmation. Skipped slots under Votor add two things to it.

Give every slot a deadline of your own. Mirror what validators do: if a slot has had no last-in-slot shred within a few slot times of its first shred, stop trusting it. Count that deadline in slots and convert it with a measured slot time, because a hard-coded figure from the 400 millisecond era is now twice too long. The conversion is worked through in what shorter slots change for a shred receiver.

Expect reconciliation to lag behind skips. An RPC node outside the admitted voting set learns of finalization from the certificate a later leader puts in its block footer, which the Anza docs say can add a block interval, and longer when slots are skipped. A run of skipped slots therefore delays your reconciliation exactly when you most want it. Under Alpenglow, confirmed and finalized mean the same thing, as the commitment levels explainer describes.

For keepers, this decides whether a missed liquidation is merely late or a loss; shreds for liquidation bots walks through that workload. For where the waiting happens on each data path, see shreds, Geyser and RPC.

A ledger of provisional actions#

This sketch ties those ideas together. It records an action against each new slot, cancels it when a later parent offset jumps over the slot or when the slot misses its deadline, and lets your reconciliation code confirm what survived:

provisional.py
1# provisional.py: hold shred-driven actions per slot until the chain settles them
2import socket
3import struct
4import sys
5import time
6
7STALL_SLOTS = 4 # give up on a slot this many slot times after its first shred
8SLOT_SECONDS = 0.2 # replace with a measured value
9
10
11class Slot:
12 def __init__(self, now):
13 self.first_seen = now
14 self.complete = False # LAST_SHRED_IN_SLOT seen
15 self.state = "open" # open, complete, stalled, skipped
16
17
18class Ledger:
19 def __init__(self):
20 self.slots = {}
21 self.actions = {} # slot -> list of (name, cancel callback)
22
23 def on_shred(self, pkt, now):
24 """Returns the slot if this data shred is the first seen for it, else None."""
25 if len(pkt) < 88 or pkt[64] & 0xF0 not in (0x90, 0xB0):
26 return None # data shreds only
27 slot, = struct.unpack_from("<Q", pkt, 65)
28 parent_offset, flags = struct.unpack_from("<HB", pkt, 83)
29 new = slot not in self.slots
30 st = self.slots.setdefault(slot, Slot(now))
31 if flags & 0xC0 == 0xC0 and st.state == "open":
32 st.complete, st.state = True, "complete"
33 # every slot between the parent and this one is left out of this fork
34 for gap in range(slot - parent_offset + 1, slot):
35 self.mark(gap, "skipped")
36 return slot if new else None
37
38 def act(self, slot, name, cancel):
39 self.actions.setdefault(slot, []).append((name, cancel))
40
41 def mark(self, slot, state):
42 st = self.slots.setdefault(slot, Slot(time.monotonic()))
43 if st.state in ("skipped", state):
44 return
45 st.state = state
46 for name, cancel in self.actions.pop(slot, []):
47 cancel(name, slot, state)
48
49 def tick(self, now):
50 for slot, st in self.slots.items():
51 if st.state == "open" and now - st.first_seen > STALL_SLOTS * SLOT_SECONDS:
52 self.mark(slot, "stalled")
53
54 def finalized(self, slot):
55 """Call when your RPC node reports this slot finalized: its actions stand."""
56 self.slots.pop(slot, None)
57 return [name for name, _ in self.actions.pop(slot, [])]
58
59
60def cancel(name, slot, why):
61 print(f"cancel {name}: slot {slot} {why}", flush=True)
62
63
64if __name__ == "__main__":
65 port = int(sys.argv[1]) if len(sys.argv) > 1 else 9000
66 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
67 sock.bind(("0.0.0.0", port))
68 sock.settimeout(SLOT_SECONDS / 4)
69 led = Ledger()
70 while True:
71 try:
72 pkt = sock.recv(1232)
73 except socket.timeout:
74 pkt = None
75 now = time.monotonic()
76 if pkt:
77 slot = led.on_shred(pkt, now) # registers data shreds only
78 if slot is not None:
79 led.act(slot, f"quote-from-{slot}", cancel) # stand-in for your strategy
80 led.tick(now)

We tested it on 127.0.0.1 with crafted data shreds, with coding shreds mixed in ahead of the data shreds, which open no actions of their own: slot 100 complete, slot 101 stopping after three shreds, slot 102 built on 100 with a parent offset of 2, and slot 103 started but never finished. The output:

Text
cancel quote-from-101: slot 101 skipped
cancel quote-from-103: slot 103 stalled

Two choices in it are deliberate. A stalled slot stays cancelled even if more shreds turn up later, because acting late on a slot the cluster may already be skipping is the worse error. And the ledger never marks anything final on its own: only finalized, called from your RPC reconciliation, does that. In production you would also drop slot state on a window, as the gap tracker in our docs does, and replace the stand-in action with your own. To see how one slot unfolds before any of this applies, read the anatomy of a slot from the leader's side.

Each plan has a free 2-hour trial, once per person. Email support@nitride.xyz with the IPv4 address and UDP port you want to test. We verify you receive on that address, then your 2 hours start.

Sources#

Read nextRunning two shred feeds side by side, and when it pays