Key Takeaways Agave proposals target replay of costly losing blocks October design stops early but may restart replay November draft […]
The post Solana Proposal Would Cut Wasted Work for Validators appeared first on Coindoo.
Key Takeaways
- Agave proposals target replay of costly losing blocks
- October design stops early but may restart replay
- November draft waits until a rival block finalizes
- No benchmarks published; draft awaits scheduler change
Contributor Philippe Laferrière opened the newer of the two, a draft pull request to Agave, on Nov. 23. Agave is the validator client maintained by Anza, and the draft is pitched as a simpler alternative to his own October design.
Why one block can tie up a validator
Every Solana validator re-executes the transactions in each block it receives to confirm what they do to balances and other onchain data. Validators call this replay. Most blocks clear quickly. Both of Laferrière’s proposals describe themselves as a failsafe for the ones that don’t: blocks expensive enough to keep replay busy long after a validator would want to move on.
Solana’s new consensus protocol changed how soon a validator can learn that a block won’t make it. Alpenglow went live on mainnet on Oct. 21, replacing TowerBFT, and targets finality in about 150 milliseconds, according to the Solana Foundation’s October roundup. Under Alpenglow, validators vote on each slot and their votes are aggregated into certificates. A skip certificate shows that enough stake voted to pass over a slot. A finalization settles a block permanently. Either signal can arrive while a validator is still executing a block from the same slot or a competing branch, and that window is what both proposals try to use.
The October design: stop at the first skip signal
Laferrière’s October 27 proposal cancels replay when Votor, Alpenglow’s voting component, sees a skip certificate for a slot and no notarize-fallback certificate (or anything stronger) for it. Execution halts at the next batch of transactions. The validator then discards its in-progress working state for that slot, which Agave calls a bank, without marking the slot as dead. The block’s raw data stays on disk. Blocks the validator produced itself and blocks it has already fully replayed are never cancelled.
The catch is that a skip certificate doesn’t rule a block out for good. If a notarize-fallback certificate arrives later, or one of the block’s descendants is finalized, the block belongs on the finalized chain after all. The validator then has to rebuild the bank and replay the block from the first transaction, so the time it meant to save turns into time spent twice. That resume path also proved fragile in review. Reviewer akhi3030 found it could stall if data the node had requested from peers was incomplete, and Laferrière fixed it by routing the retry through an existing recovery mechanism.
The November draft: wait until the block cannot win
The new draft cancels a block only after a sibling block has been finalized. Once that happens, the expensive block can never be finalized, so nothing can bring it back. Laferrière writes that this removes the logic for resuming block execution, which held most of the October proposal’s complexity. Votor works out which slots are dead ends from the ancestry of finalized blocks and passes the list to replay. Replay then closes that bank’s gate for transaction execution, and the scheduler, which hands transactions to execution threads, aborts the remaining work. The bank is kept until routine pruning removes it, and no new bank is created for the slot.
The safer trigger comes later. A skip certificate can arrive while a block is still early in execution. Finalization of a rival block normally comes afterward, and by then the validator may have finished most of the expensive block. Work done before the cancellation stays spent, so the draft saves only what’s left in the queue. The design gives up some of the potential saving in exchange for never replaying a block twice.
Cancellation needs a replay thread that can listen
Sending a cancel request does nothing if the thread meant to act on it is stuck waiting. The November draft is stacked on a separate scheduler proposal that stops the replay thread from blocking on the scheduler while blocks finish processing. In the draft, Laferrière notes that replay previously blocked on the block footer, the data that marks the end of a block. One gap remains, by his account: when a block is aborted, replay can still wait for a transaction that’s already executing to finish. How much that costs depends on how heavy that transaction is, and that’s exactly the kind of block these proposals target.
Where each proposal stands (Nov. 25)
#16454 · skip-triggered
Opened Oct. 27. Still open and not withdrawn, with a partial review in and further reviewers yet to weigh in.
#17065 · scheduler
Open. The finality-triggered draft can’t leave draft status until this merges.
#17044 · finality-triggered
Opened Nov. 23, moved to draft Nov. 24. Reviews from two engineers requested, none submitted yet.
The number neither draft provides
Neither pull request includes benchmark figures. The case for choosing one design over the other rests on two things nobody has published: how often an expensive block loses while a validator is still replaying it, and how much execution remains when the deciding signal arrives. If skip certificates usually land early and rival finalizations late, the October design saves far more, and its restart risk becomes the price worth debating. If both signals land near the end of replay, the simpler November draft gives up little.
Both drafts add a metric, replay-slot-cancelled-stats, to record cancellations. In the October version it also logs how long a block ran before being stopped. Those readings from validators running the code are the evidence Agave’s reviewers would need to choose between stopping early and stopping safely.
The post Solana Proposal Would Cut Wasted Work for Validators appeared first on Coindoo.
Source: https://coindoo.com/solana-proposal-would-cut-wasted-work-for-validators/
More Crypto News
Check our Market Overview
Disclaimer: This article is for informational purposes only and does not constitute financial advice. Always conduct your own research (DYOR).





