Closed omritoptix closed 1 month ago
few cents while debugging this issue:
store logs
(which includes pruning logs) are disabled in the cosmos-sdk by default
func NewCommitMultiStore(db dbm.DB) types.CommitMultiStore {
return rootmulti.NewStore(db, log.NewNopLogger())
}
seems like rollappd
did prune since some height
rollappd q staking validators --height 6872279
Error: rpc error: code = InvalidArgument desc = failed to load state at height 6872279; version mismatch on immutable IAVL tree; version does not exist. Version has either been pruned, or is for a future block height (latest height: 6873360): invalid request
I think that pruning-interval = "10"
is way too low and causes a lot of overhead. Checking it now
closing as works as expected (we just didn't know what expected means here)
even though pruning seems to be working with these settings applied:
application db size doesn't change over time
also, the expected behaviour is that since the starting blocks are already pruned, queries at old height shouldn't return any result, in reality they do:
the unknowns