May 31, 2026 · 7 min read

I'd written Rust for a week, so I built a validator cluster

What building Solite taught me about Solana: slots, PoH, leader schedules, votes, and why channels beat shared memory in async Rust.

Solana's docs keep mentioning validators, proof of history, leader schedules and lamports. Reading about them wasn't sticking. So, about a week into Rust, I decided to build a small one. Solite is a Phantom-style wallet wired to a four-validator cluster, all in one binary.

Two systems, one process

The binary hosts a wallet layer (users, keys, auth) and a runtime (slots, PoH, blocks, votes, balances). They never share memory. HTTP handlers send queries and transactions to the runtime over Tokio channels, and the runtime publishes every event on a broadcast channel that feeds the WebSocket.

The only link between the two is the base58 address. The wallet stores who owns it; the ledger stores its balance. That one decision made both halves testable on their own.

A slot, step by step

  • The slot clock ticks every ~800 ms.
  • The stake-weighted schedule names a leader for the slot.
  • The leader drains the mempool (capacity 500), builds a block and extends the PoH hash chain.
  • The block is broadcast to the other validators, which vote.
  • At 3 of 4 votes the block is finalized and balances update.

Each of those steps is an event, so the explorer can animate the pipeline live. Watching V1 lead four slots in ten because it has twice the stake made the leader schedule click for me in a way the docs hadn't.

Keys done properly

Even in a simulator I wanted the wallet to be real: BIP39 phrases, SLIP-10 derivation on Solana's path m/44'/501'/0'/0', ed25519 signatures, and secrets sealed with Argon2id and AES-256-GCM. A transaction is signed in the wallet and verified by the runtime before it can enter the mempool.

The borrow checker, and how I stopped fighting it

My first version shared the ledger behind an Arc<Mutex<>> and passed it everywhere. It compiled eventually, but every new feature was a negotiation. Rewriting it as tasks that each own their state and talk over channels made the code shorter and the borrow checker quiet. In async Rust, message passing is the path of least resistance.

What it isn't

There's no P2P network and no real VDF; it's an architecture simulator. But the pipeline of sign, queue, block, vote and commit is the same shape as Solana, and building it was the fastest way I've found to understand it.

ProjectSolite: A Solana-style validator cluster in one Rust binary.→