handshake-org.github.io icon indicating copy to clipboard operation
handshake-org.github.io copied to clipboard

Pruned full node using more than 400 MB

Open Loquats opened this issue 3 years ago • 3 comments

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!

Loquats avatar Dec 27 '21 06:12 Loquats

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.

rithvikvibhu avatar Dec 27 '21 09:12 rithvikvibhu

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.

pinheadmz avatar Dec 27 '21 13:12 pinheadmz

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.

Loquats avatar Dec 30 '21 05:12 Loquats