Skip to content

Ask in first time wizard whether to donate disk space#1052

Open
ArneBab wants to merge 7 commits into
hyphanet:nextfrom
ArneBab:ask-in-first-time-wizard-whether-to-donate-disk-space
Open

Ask in first time wizard whether to donate disk space#1052
ArneBab wants to merge 7 commits into
hyphanet:nextfrom
ArneBab:ask-in-first-time-wizard-whether-to-donate-disk-space

Conversation

@ArneBab

@ArneBab ArneBab commented May 2, 2025

Copy link
Copy Markdown
Contributor

I’ve heard the argument "I don’t want stuff stored on my disk" so often now that if "it’s only in memory" suffices it may just be worth to have a checkbox "donate disk space?" and if toggled off use a RAM store and cache.

That may reduce the lifetime of files but if in exchange many more people use the network, that’s a net win.

Since at least half the nodes are only online 2 hours per day, it’s likely that caches already provide most of the data, so the effect of more RAM only nodes shouldn’t be too bad.

Besides adding the checkbox I fixed a nasty locking issue that prevented switching from salt-hash to ram and then back to salt-hash. This didn’t hit earlier, because switching to salt-hash required a node restart which masked the locking issue.

Also toggles in the first time wizard can now actually be instant.

@Bombe

Bombe commented Jul 1, 2025

Copy link
Copy Markdown
Contributor

How easy will it be to reverse whatever decision one made during the first install? I know that I oftentimes do not pay that much attention to stuff in checkboxes when I’m installing something, and I don’t want anybody to have to reinstall, because they don’t know how to change stores or whatever…

@ArneBab

ArneBab commented Jul 1, 2025

Copy link
Copy Markdown
Contributor Author

They just need to go into core settings as usual and change to salt-hash store.

@Bombe

Bombe commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

They just need to go into core settings as usual and change to salt-hash store.

If you remove the “just” from this sentence, it sounds like something you would first need to know about in order to actually do it…

@ArneBab

ArneBab commented Jul 2, 2025

Copy link
Copy Markdown
Contributor Author

Maybe we should add a link to the first time wizard (/wiz) for basic setup?

@Bombe

Bombe commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

That sounds… wrong. As long as it’s called “First Time Wizard” I would a) never expect it to be around after it’s been finished, and b) never look for that when wanting to change settings.

@Juiceman

Juiceman commented Jul 3, 2025 via email

Copy link
Copy Markdown
Contributor

@ArneBab

ArneBab commented Jul 6, 2025

Copy link
Copy Markdown
Contributor Author

I wouldn’t want to nag people all the time, because a node without store is still useful to the network (for routing) and this nagging would just cause people to stop running their node.

But you’re (all) right that we need to make it easy to switch to a persistent store. ⇒ not yet to merge.

@RealJosephKnapp

Copy link
Copy Markdown

I’ve heard the argument "I don’t want stuff stored on my disk" so often now that if "it’s only in memory" suffices it may just be worth to have a checkbox "donate disk space?" and if toggled off use a RAM store and cache.

That may reduce the lifetime of files but if in exchange many more people use the network, that’s a net win.

Since at least half the nodes are only online 2 hours per day, it’s likely that caches already provide most of the data, so the effect of more RAM only nodes shouldn’t be too bad.

Besides adding the checkbox I fixed a nasty locking issue that prevented switching from salt-hash to ram and then back to salt-hash. This didn’t hit earlier, because switching to salt-hash required a node restart which masked the locking issue.

Also toggles in the first time wizard can now actually be instant.

One possible answer would be to allow the data store to be stored separately from the installation of hyphanet. That way, if you don't want to donate disk space, you can instead put the datastore in the temp directory of your operating system with a one-time self-destructing encryption key. When you reboot your computer, the temp directory would be wiped and the one time self-destructing encryption key would be wiped too. This should be an option because not everyone has lots of ram to spare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants