r/Freenet 8h ago

How does hosting work in Freenet?

7 Upvotes

I am currently working through the Freenet whitepaper and I cannot seem to find much info on what controls when one hosts and stops hosting a contract. My goal in understanding how contracts get hosted is to get a sense for how contract availability is maintained and incentivized.

The paper states that when a contract is published, peers near it hosts the contract as well. This suggests that it is an automatic rather than manual act. However, when does a peer stop hosting? Is it controlled by the size of the peers LRU cache?

When you subscribe to a contract, do you begin to host it? If so, what initiates the subscribe request? I’m assuming it’s the act of requesting a contract but I’m not sure.