MegaETH’s sequencer will soon have hot backups that can be rotated to within tens of milliseconds should the primary sequencer go down. It will boost system reliability and enable downtime-free upgrades.
Implementing hot backups for the sequencer is actually quite similar to rotating sequencers. The common task is to make sure when a new sequencer (backup) takes power, it picks up exactly where the previous sequencer left off. That is, the new sequencer should grow the chain on top of the very last block produced by the previous sequencer; otherwise, some of the old blocks will be reorganized.
To guarantee that, the new sequencer needs to know the block height of the last block produced by the old sequencer, along with the corresponding chain state so that it can build on top. This is almost trivial when both the old and the new sequencers are alive and cooperative – they can just communicate.
However, if the old sequencer stops cooperating, e.g., because of hardware failure, things become a bit more complicated. The new sequencer must figure out where it should resume the work, but only the old sequencer, which is no longer responsive, can reliably tell. It is too late to ask!
Instead, what we can do is to flip the ordering of the events. Instead of asking where the old sequencer stops, which can sometimes be impossible as we just saw, we require the active sequencer to explicitly broadcast a signal about its progress every time it has produced a block. This signal will be picked up and tracked by the upcoming sequencer. When the current active sequencer goes offline, it does not need to tell the new sequencer its progress, because the new sequencer has been tracking it the whole time.
This handoff process exists in every blockchain that involves switching the block-producing server, which are basically all L1s and almost all L2s including MegaETH. It’s only that some chains switch the block-producing server more frequently and some less. For Ethereum, it’s once every block. Soon for the MegaETH testnet, it’s every time the active sequencer goes down. Because switching the block-producing server inevitably pauses the chain (you cannot have both the old and the new leaders talk at the same time!), it makes sense to switch less often if one prioritizes performance, especially consistently low block times. This is exactly what MegaETH is doing.
Another aspect of design that differs across chains is the mechanism through which block-producing servers broadcast their progress. When equivocation (e.g., a malicious block-producing server telling half of the network one progress and the other half another) is a concern, we need a Byzantine-fault-tolerant broadcast algorithm so that every node agrees on the progress of the block-producing server. When this is not a concern and all we worry about are power failures, we just need a crash-fault-tolerant broadcast algorithm such as Raft.
***
The feature will land in one of the upcoming upgrades to the testnet. Stay tuned!
Another 1% of $PROMPT is up for grabs as part of @AIwayfinder's community campaign!
Activate your agent at https://t.co/4YP2rgcPpa & complete the missions to earn 2% allocation for testers and supporting our community!
🔗 https://t.co/bXOBng7fuU
Dear friends, I'm deeply honored and excited to share this news with you : Machine Hallucinations — Sphere! ' The latest canvas for Refik Anadol's AI-generated art? The new Sphere in Las Vegas' https://t.co/fb1dPzIaCV
@benitopagotto@quadzillatd @m4rtr3d @RTFKT Fair enough, I see it this way: if it’s a microsystem it should work the other way around right? A good team is able to clear the fog when uncertainty is built up by 7 thread makers?
Day 2 holder here, I have seen people come and go, I don’t mind about the floor price.
1/ The Global Digital Rights Charter v1 (GDRC 1) is now live.
It is a declaration of principles for a world that is highly digital and more so every day.
Principles for how we will live for the next 100 years.
🤯Woah just learning about these new ERC-4337 smart accounts & account abstraction.
➡️No seedphrase
➡️Smart phone compatible
➡️2FA
➡️Social recovery in case of loss
This might be the single most important trend to watch for our industry this year...
s/o @AG_NBA_33 for the tip