What Stakers Need to Know About Upcoming Ethereum Hardforks?

ETHCC 7 · 8 Jul 2024 · 16:53

Marek Moraczyński of Nethermind explains what upcoming Ethereum hard forks mean for stakers. For Pectra he covers EIP-7251, which raises max effective balance to 2048 ETH for consolidation and flexible staking, faster deposits from about 12 hours to 13 to 19 minutes, and EIP-7002 for execution-layer exits. He then covers EIP-4444 history expiry, Verkle trees and stateless clients, ePBS, inclusion lists, gas limit and PeerDAS, noting that timelines are his own estimates.

Speakers

Topics

From ETHCC 7, hosted by Ethereum France.

Transcript

At Nethermind, my main focus is on Ethereum hard forks, and today I would like to discuss the upcoming upgrades that are relevant to Ethereum stakers. So in a 20-minute talk, I will cover what the next two, three years mean for Ethereum stakers without too many technical details. Alright, so let's start with the PECTRA fork. PECTRA is the next Ethereum hard fork, and the funny thing is that Core Dev's plan to do a small fork to focus on vertical trees, but when we started discussing which EIPs we would like to include, we ended up with one of the biggest forks in Ethereum history. So Pectra contains many improvements in different areas.

It will be a mega feature fork with account abstraction, peer DAS, EOF, so the biggest changes ever done in EVM, other improvements like for example BLS pre-compile, and finally the changes that I marked with a red rectangle on the slide, and we will focus on them in details in this presentation. So let's start with the most interesting EIP for stakers in this fork, EIP 7251, increased max effective balance. And many of them are being run on the same machine.

Thus the number of validators doesn't match the number of unique participants in the protocol. And the problem is that every excessive validator creates extra stress for the network. For instance, the network has to aggregate messages that comes from the same entity from exactly the same machine, which doesn't sound sound like an optimal solution. And now EIP 7 to 5.1 increase max effective balance to 2048 if while minimum will be still 32 if. So if you have many validators, you will be able to consolidate them, thus reduce the stress for the entire network and for your setup as well.

And I think the biggest benefit for stakers, especially solo stakers of this EAP, is being able to stake in more flexible increments. So imagine solo staker who would like to stake 40 if now. It's very likely that such a solo staker will have a node at home with 32 if, but the rest will go to other solutions, maybe some liquid staking solution. So even though stakers run nodes at home, they are kind of forced to use other solutions. After this EIP, staker will be able to stake all 40 if at home without waiting to gather 64 if.

And then we wait a few more hours to achieve consensus between nodes. And the process now takes around 12 hours. After Pectra, we start, of course, in the same way with the transaction. And then during block production, block builders include all deposits in a special object in block body. And thanks to that, we have a full view of deposits just after the block is finalized. So the biggest benefit of this EAP is that process that takes now around 12 hours will take only 13 to 19 minutes.

Other benefits, this EAP significantly reduces technical debt in client, and it eliminates some theoretical attack scenarios. For more, I recommend checking link in this presentation. So we talked about deposits. Now it's time to talk about exits and withdrawals, and of course, EIP 7002, execution layer triggerable withdrawals. So imagine the following situation. On the other hand, you you know how great is solo staking for Ethereum decentralization, and you don't want to use other solutions.

But you have a good friend that uh stakes if and runs node at home. So you agreed with your friend that he will stake if for you. And as you may know, there are two keys in staking the active key and the withdrawal credentials, and you will have the withdrawal credentials only. Your friend will have the active key. And uh this active key will allow perform all validator duties for your friend. But one day your friendship ends badly.

And unfortunately, you didn't ask your old friend for a pre-signed exit message. So you have a problem because you cannot exit your funds with the withdrawal credentials only. Fortunately, this pro this problem will be solved in PECTRA and EAP7002. So after PETRA, exits will be possible with both methods. So with the active key and the withdrawal credentials. What's more, exits will be possible through smart contracts. And a few words of clarification about withdrawals and how they will work after PECTRA.

So your validator can operate in two ways. In the same way as before PETRA with automated withdrawals, above 32 if every few days, or you can use PECTRA's compounding feature with automated withdrawals, allowing accumulation up to 2048 if partial withdrawals on demand and automated withdrawals above this threshold. Alright, that was Pecktra for stakers.

But before we delve into further details, let's take a look at the current disk requirements for running nodes. So on the slide you can see Nethermind DB, which is around one terabyte right now. The size and distribution will be similar to other full nodes, like for example GAF. And as you can see on the slide, history takes more than 80% of your node disk space. And history is not used at all during block validation, transaction sending, block production. Furthermore, history grows much faster than state database.

So this is a good moment to mention EAP4Force. EIP4Force focuses on removing history from the clients, so clients will guarantee only a few months of history. And the problem is not EIP itself to implement, but in creating guarantees that history will be stored in a decentralized and secure manner. Therefore, we need solutions such as portal network for this purpose. Okay, I will also like to give you a very short overview of vertical trees.

So vertical trees introduce a new tree structure for Ethereum, so we will switch from Merkle tree to vertical trees. And the main benefit of verticals are much smaller witnesses. A witness is a subset of Ethereum state tree, which is necessary to prove the validity of a particular piece of data. The witnesses will be so small that we will be able to include them in blocks. And this is important because if we add witnesses, blocks can be self-contained execution units that can be verified without any extra information. And thanks to that, we will have light clients that are nodes that don't have to store state and any data on disks, so it moves us closer to Vitalik and Justin Drake's vision of having nodes on your phone or smartwatch.

So after Virkals, node operators will be able to use two types of clients stateless clients and or stateful clients. So stateless clients can validate blocks and rewards from attestations. However, not everything will be possible with stateless clients. For example, you won't be able to build blocks locally, but you can propose them thanks to MEV boost. Additionally, many RPC methods won't be possible, for example, if estimate gas, which is an important part of sending transactions.

Stakers use MEV boost, which has a great adoption and is being used by approximately 90% of validators, but this out-of-the-protocol infrastructure is problematic because proposers and builders must trust intermediate infrastructure called relays. And we have only a few relays, and so it is centralization vector, and actually, just after my talk here, Marius will be talking about problems with this infrastructure. But with ePBS, so with in protocol version of proposer builder separation, we uh proposers and builders may trust um relays, but they do not have to.

So, long story short, Ethereum will be more decentralized and censorship resistant with ePBS. But there is one more benefit of EPBS that caught my attention as an execution client developer. And I'm thinking of how EPBS is going to reorganize uh the slot. So Ethereum has 12 second slot time and the attestation deadline is four seconds, but in practice, ELs have only two less than two seconds to process blocks. So it has a few consequences.

We can't increase gas limit too much, and stakers are forced to use good hardware, especially very fast disks, are important. But with ePBS, execution clients will have much more time to process uh blocks. Furthermore, the different heavy operations won't be executed at the same time. A small caveat here: EPBS is not yet confirmed. Uh researchers are discussing other solutions, like for example, execution tickets, but anyway, whatever solution we will see in the future, it will be great to see better organization of Ethereum slot. Because it means that stakers could potentially use lower hardware requirements, or maybe even better, we could increase uh throughput of Ethereum.

And it wasn't possible to cover all the changes that are relevant to stakers. Um let me briefly mention other changes that are being discussed. So increasing gas limit. This change doesn't require hard work, of course. Uh, and I don't want to talk here if we should or shouldn't increase gas limit. Um, but um every potential increase of gas limit has obvious benefits for Ethereum scalability, and on the other hand, it means higher hardware requirements. But I believe that we can achieve better scalability without sacrificing decentralization, because if such an increase will be bundled with changes like verticals, uh maybe EPBS, EIP44s, potentially in future with state expiry, it doesn't have to mean that stakers uh will need to buy better hardware or we will move Ethereum to data centers.

Uh increase in blob count and peer DAS. So uh increasing the blob count uh has similar effects to gas limit, so it means uh higher hardware requirements, but in Pecktrafork we will have PIR DAS and PEERDAS introduces blob sampling, so uh we don't have to store all blobs on our disks. Um so it means that we can scale without sacrificing disk requirements. Inclusion lists, so to prevent censorship, validators must include certain transactions.

Otherwise, the block will be invalid. So there is a discussion in the community if we should decrease if issuance. Okay, and where we are with these changes and when they can be shipped on mainnet. And this is just my intuition because there are no official timelines. Pektra, uh very high probability in the first half of uh 2025, likely in Q1 2025.

Um EAP44s, so core devs would love to ship it before the full node size exceeds two terabytes, which is expected to happen in about two years. Vertical plant after Pectra, it is expected expected no sooner than Q4, 2025, and likely in 2026. EPBS, inclusion lists, and issuance reduction, there are not scheduled for any hard fork yet, and there are more in research, prototyping, discussion phase. Alright, um let me give you a quick summary.

So after Pecktra, uh deposits will be much faster, fonts owner will be able to exit without a pre-signed exit message, stakers will be able to stake with more flexible increments, consolidation of validators will reduce networking requirements. Next hard fork vertical will allow for stateless clients, ePBS and inclusion lists will make Ethereum more decentralized and censorship resistant. The combination of EIP44s, verticals, and ePBS will either reduce hardware requirements for stakers, or uh it will create some room for more throughput on Ethereum.

Yeah, that's all I wanted to say. Thank you everyone, and feel free to check resources.

Related talks