Menu
Sign In Search Podcasts Libraries Charts People & Topics Add Podcast API Blog Pricing

Lei Yang

πŸ‘€ Speaker
495 total appearances

Appearances Over Time

Podcast Appearances

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

And this process is what we call managing or updating the state tribe.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

And before our optimization, state try management takes more than 90% of block building.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

In other words, if you spend seven days processing those 11.4 billion transactions, you would spend 70 days on managing the state try.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

So in other words, you are kind of only spending 10% of the time running the transactions and 90% of the time like doing transactions.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

post-hoc management.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

So what we did, I think, which is pretty interesting compared to what other chains have been doing, is we completely redesigned the data structure.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

And I think many teams have kind of identified this bottleneck after we did.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

And I think what they did was they tried to optimize the database

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

that stores this state tribe, but I think not many of them has tried to just revamp and redesign the data structure itself, right?

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

So there's a difference between the mathematical structure and also the physical database that holds this data, right?

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

I think most people are rearranging the data in the physical medium, but for us, we just completely redesigned the mathematical structure.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

And what we optimized for was, okay, so many people are trying to improve the database, but our goal has always been that let's just get rid of the database.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

So I think something that's very unique about our state try is it takes so little space that you don't have to constantly update your database.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

because you don't have to store it in a database.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

You can just fit it in the main memory of your computer, which usually goes at most maybe 128 to 56 gigabytes, and that's it.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

So it alleviates the potential bottleneck of constantly reshuffling data from the state tree to the database completely.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

And now it's just a very quick memory read.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

So I think this, I would say, is one of the secret sauces, like just a complete revamp of...

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

the Ethereum Merkle state tri-data structure.

Bankless
MegaETH Mainnet is Live! β€” The Next Era of Ethereum Scaling

Very good question.