-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expose versions field to support pruning #123
Conversation
Thanks a lot for looking into this @ackratos! Do you mind sharing your implementation of the PruningStrategy to better understand this requirement? Also, shouldn't the interface in cosmos/cosmos-sdk#3480 rather be: func (tree *MutableTree) Prune(ps PruningStrategy) {/* as in cosmos-sdk#3480 */} and require changes here (and not in the sdk)? |
@liamsi sorry for the delayed reply, I have had a whole week vacation. Apart from cosmos/cosmos-sdk#3480, this is mainly mean to support state sync (tendermint/tendermint#828) I haven't realise cosmos recently refactored the prune strategy part :( (cosmos/cosmos-sdk#2985). I already finished change on my earlier cosmos fork (will raise a PR to latest cosmos within this week):
Our usage is a little more complicated than cosmos syncable way point. (which related to num of versions recent and fixed number of blocks). We introduced
|
closing this PR as we introduced pruning into IAVL via #158 |
to support cosmos/cosmos-sdk#3480