Nitride.xyz
Learn · Updated November 17, 2026

Stake-weighted fanout

Nitride.xyz team

Stake-weighted fanout is the rule Turbine uses to decide which validators receive each shred first. For every shred, all nodes are shuffled with a bias toward higher stake, then arranged in a tree with a fixed fanout. Heavily staked validators tend to sit near the top and get shreds after fewer hops.

What is stake-weighted fanout?#

A leader cannot send every shred to every validator itself. It would need thousands of copies of each packet from one machine. Turbine spreads the work: the leader sends each shred to one node, that node sends it to a group, and each member of the group forwards it again. The number of nodes each sender forwards to is the fanout.

The interesting part is the order. Turbine does not place nodes at random or by address. It shuffles them with weights equal to their stake, so the position of a validator in the tree depends on how much stake it has, and the tree is rebuilt for every single shred.

How is the tree for one shred built?#

The Agave validator (source cited here: release v4.4.1) follows these steps for each shred:

  1. Collect the nodes. The list holds every staked node plus the other validators known through gossip, sorted by stake and then by public key so all nodes start from the same order. On mainnet, testnet and devnet, nodes that share one IP address are collapsed so that only one of them receives shreds at that address.
  2. Remove the leader. The slot's leader, taken from the Solana leader schedule, is not part of its own tree.
  3. Seed a random generator from the shred. The seed is a SHA-256 hash over the slot, the shred type, the shred index and the leader's public key. Every node can compute it, so every node derives the same tree for the same shred without any message saying who is where.
  4. Shuffle with stake as weight. Agave's weighted shuffle returns each node once, with higher-weight nodes tending to come earlier in proportion to their weight. Nodes with zero stake are shuffled among themselves and placed after all staked nodes.
  5. Cut the list into layers. Position 0 is the root. The next fanout positions are the first layer. Each first-layer node then forwards to its own group of fanout nodes in the next layer, and so on.

In v4.4.1 the constant DATA_PLANE_FANOUT is 200. With that value, the root plus two layers already covers 40,201 positions, so even a large cluster is reached in a handful of hops.

Why weight by stake?#

The Anza Turbine document gives the reason in one line: biasing the shuffle toward higher stake lets heavier votes come back to the leader first. Consensus moves forward when validators holding enough stake have seen a block and voted on it. Placing those validators near the top of the tree gets the block to them sooner, which shortens the time until the votes that matter arrive.

There is a security side too. Because the seed depends on the shred, a node cannot pick its spot in the tree, and the root changes with every shred. A single badly connected or malicious node near the top only affects the shreds whose trees put it there, not the whole block.

What does tree position mean for timing?#

Each hop is one more network trip plus a little processing on the forwarding node. A validator in the first layer receives a shred after two hops from the leader: leader to root, root to it. A node in the second layer waits for three. Since the shuffle favours stake, a large validator lands in the first layer more often than a small one, and an unstaked node usually ends up in the deepest layer of the tree.

The tree changes per shred, so position is a distribution, not a fixed rank. Over a slot, a mid-sized validator will be the root for a few shreds, in the first layer for some, and deeper for most. Averaged arrival time follows stake, while any single shred can arrive from anywhere.

Geography adds to this. A node in the first layer that is far from the root still waits for a long network trip. Where Solana latency comes from breaks down these components.

The same hop counting applies outside Turbine. Any service that forwards shreds after a validator receives them adds its own hops, and the delivery paths page in the docs shows how direct and relayed paths differ in that count.

Does stake-weighted fanout change during an epoch?#

The weights are stake values, and the leader schedule and stake both change at epoch boundaries, so the weights hold steady through an epoch. What changes constantly is the gossip view of which nodes exist and where they listen. Agave caches its node list per epoch and refreshes it after a short time so that new contact details are picked up.

Questions#

Is the Turbine tree the same for every shred in a slot?#

No. The seed includes the shred index and type, so each shred gets a different shuffle and a different root. This spreads the forwarding load across many nodes.

Can an unstaked node be high in the tree?#

Rarely, if ever. The weighted shuffle places zero-stake nodes after every staked node, so an unstaked node only reaches an early position if the cluster has very few staked nodes.

What does the fanout value control?#

How many nodes each forwarding node sends a shred to, and therefore how wide each layer is. A larger fanout means fewer layers but more outgoing traffic per node.

Sources#