planetarium / libplanet

Blockchain in C#/.NET for on-chain, decentralized gaming
https://docs.libplanet.io/
GNU Lesser General Public License v2.1
505 stars 139 forks source link

Define "next state root hash" for `BlockChain` and its behavior and refactor relevant code. #3829

Open greymistcube opened 2 weeks ago

greymistcube commented 2 weeks ago

We only need single "next state root hash" at any time for a BlockChain object and this does not need to be tracked in storage. As for BlockChain.GetNextStateRootHash() method, there are numerous problems: