Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pruned full node using more than 400 MB #141

Open
Loquats opened this issue Dec 27, 2021 · 3 comments
Open

Pruned full node using more than 400 MB #141

Loquats opened this issue Dec 27, 2021 · 3 comments

Comments

@Loquats
Copy link

Loquats commented Dec 27, 2021

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!

@rithvikvibhu
Copy link
Member

rithvikvibhu commented Dec 27, 2021

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.

@pinheadmz
Copy link
Member

Thanks for reporting. We should update the doc. Also worth noting that handshake-org/hsd#669 will make this more realistic since the tree data can be pruned as well.

@Loquats
Copy link
Author

Loquats commented Dec 30, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants