TrueBlocks / trueblocks-core

The main repository for the TrueBlocks system
https://trueblocks.io
GNU General Public License v3.0
1.05k stars 194 forks source link

chifra blocks -- decache does not remove cached receipts #3712

Closed tjayrush closed 1 month ago

tjayrush commented 1 month ago

Do this:

rm -fR ~/Data/trueblocks/v1.0.0/cache/mainnet/v1
watch -n .2 "find ~/Data/trueblocks/v1.0.0/cache/mainnet/ -type f | wc ; du -d2 ~/Data/trueblocks/v1.0.0/cache/mainnet | grep -v abis ; find ~/Data/trueblocks/v1.0.0/cache/mainnet/ -type f | grep -v abis | sort"

Then, in another terminal:

chifra blocks 12-100000:10 --cache --cache_txs >/dev/null

You will see the cache grow in the other terminal.

Then:

chifra blocks 12-100000:10 --decache

The receipts will not be removed from the cache.