AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
What Is a State Database?
In these, in this blockchain, this is where you could have things like history or those little pieces of data and all of that stuff. That all can exist in the chain but it's incredibly slow obviously to like iterate through all the blocks in the chain and replay all the transactions all the time. To make this chain useful, you actually need to do some optimizations because let's say you want to know what the state of a contract is in. Now you need to play through all of the transactions in all of the blocks to find where it was deployed and thenlike find all the transactions that modified this contract in some way. And then eventually you'll have what thestate of this contract