Solana’s Agave client considers when to stop replaying a losing block

Solana contributor Philippe Laferrière has proposed that Agave, the validator client maintained by Anza, stop executing a costly block once a rival block is final. His Nov. 23 pull request offers an alternative to his October design: waiting for finality may save less work, but it avoids making a validator start a block over if an early signal proves inconclusive. As of Nov. 25, 2026, neither change had been adopted, and neither pull request included benchmarks.

The work at issue is replay: a validator executes the transactions in a block it receives to verify their effects on balances and other onchain data. Most blocks finish quickly. The proposed changes target the exceptions, when a validator is still busy with a block even as consensus moves on.

Alpenglow, the consensus protocol that replaced TowerBFT on Solana mainnet on Oct. 21, targets finality in about 150 milliseconds, according to the Solana Foundation’s October roundup. Its voting component, Votor, aggregates validator votes into certificates. A skip certificate shows that enough stake voted to pass over a slot; it does not permanently rule out the block. Finalization, by contrast, settles a block permanently. The two Agave proposals differ in which signal they would act on.

October proposal: stop early and retain a way back

Under pull request #16454, opened Oct. 27, Votor would request cancellation on seeing a skip certificate if it had seen no notarize-fallback certificate or stronger evidence for that slot. Execution would halt at the next transaction batch. Agave would discard the slot’s working state, called a bank, but keep the raw block data on disk without marking the slot dead. A validator would not cancel a block it produced itself or one it had already replayed in full.

If a notarize-fallback certificate arrived later, or a descendant of the block reached finality, the validator would have to rebuild the bank and replay from the first transaction. Reviewer akhi3030 found that this restart could stall if peers supplied incomplete data. Laferrière revised the retry to use an existing recovery mechanism. As of Nov. 25, the proposal remained open, with a partial review and further reviews outstanding.

Solana’s Agave client considers when to stop replaying a losing block

November draft: stop only when a rival is final

Under #17044, Votor would use the ancestry of finalized blocks to identify slots that can no longer win. Once a sibling block was final, replay would close the losing bank to further transaction execution. The scheduler, which assigns transactions to execution threads, would abort the remaining work. The bank would stay in place until routine pruning, and Agave would not create a replacement for that slot.

Laferrière wrote that this approach removes the restart logic that accounted for most of the earlier design’s complexity. The trade-off is timing: a rival’s finalization normally comes after a skip certificate. If the validator has already executed most of the losing block, cancellation saves only the work still queued.

The pull request moved to draft on Nov. 24. By Nov. 25, reviews had been requested from two engineers, but neither had submitted one. Before it can leave draft status, a separate, still-open scheduler change, #17065, must merge. That change would let the replay thread respond to a cancellation instead of waiting on the scheduler at the block footer, which marks the end of a block. Laferrière noted one remaining limit: even after cancellation, replay can still have to wait for a transaction already executing to finish.

What reviewers still need to know

The comparison turns on two unpublished measurements: how often an expensive block loses while replay is still underway, and how much execution remains when each signal arrives. A long gap between an early skip certificate and a rival’s finalization would favor the earlier trigger on work saved, weighed against its restart risk. If both signals tend to arrive near the end of replay, waiting for certainty may cost little.

Both proposals would add replay-slot-cancelled-stats to record cancellations. The October version would also log how long a block ran before it was stopped. Without measurements from validators running the code, the size of the saving remains unknown.

Further reading