dymensionxyz / dymension-rdk

Framework for building highly scalable RollApps
Apache License 2.0
94 stars 53 forks source link

application pruning not working as expected #483

Closed omritoptix closed 1 month ago

omritoptix commented 1 month ago
$ rollappd version
v2.2.0-hotfix.3

even though pruning seems to be working with these settings applied:

/usr/local/bin/rollappd start --log_level debug --pruning=custom  --pruning-keep-recent=100 --pruning-interval=10 --min-retain-blocks=10000

application db size doesn't change over time

du -sh ~/.rollapp_evm/data/application.db/

656G    /home/ubuntu/.rollapp_evm/data/application.db/

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:

$ rollappd q staking validators --height 1
pagination:
  next_key: null
  total: "0"
validators:
- commission:
    commission_rates:
...

the unknowns

mtsitrin commented 1 month ago

few cents while debugging this issue:

omritoptix commented 1 month ago

closing as works as expected (we just didn't know what expected means here)