handshake-org.github.io
handshake-org.github.io copied to clipboard
Pruned full node using more than 400 MB
I started running a fresh hsd node in pruned mode, using
$ ./bin/hsd --prune --prefix ~/.hsd_prune
The instructions here state that it should not require more than 400 MB: https://github.com/handshake-org/handshake-org.github.io/blob/master/src/guides/config.md#pruned-full-node-with-wallet
However, my data directory is 7.8 Gb:
$ du -sh hsd_prune/
7.8G hsd_prune/
Are the instructions out of date, or am I doing something incorrectly? Thanks!
I think that number refers only to block storage. Other things like the urkel tree (with domain and dns data) will still be stored (see sizes of blocks, chain and tree folders inside hsd_prune).
This should probably be mentioned on that page with the pruned node example.
Thanks for reporting. We should update the doc. Also worth noting that https://github.com/handshake-org/hsd/pull/669 will make this more realistic since the tree data can be pruned as well.
Thanks. Yes, it's mostly the tree directory taking up space, though even chain is much bigger than block:
$ du -sh hsd_prune/*
308M hsd_prune/blocks
774M hsd_prune/chain
7.9M hsd_prune/debug.log
44K hsd_prune/hosts.json
0 hsd_prune/key
6.5G hsd_prune/tree
5.0M hsd_prune/wallet
So it seems like the behavior is expected. It would be great to clarify this in the doc.