planetarium / libplanet

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

Fix `TrieStateStore.PruneStates()` to work together with fragmented states #1653

Closed dahlia closed 1 year ago

dahlia commented 2 years ago

Since fragmented states were introduced:

TrieStateStore.PruneStates() method has not worked well. Note that there's even a comment addressing this:

https://github.com/planetarium/libplanet/blob/bf2a321af65cd70dda9243e6a8e888a217223928/Libplanet/Store/TrieStateStore.cs#L41-L43

There are two problems:

The former one should be published as a hotfix. The latter one would accompany API changes, so it should be published in the next minor release.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.