I asked this question and got a great answer from @Sevey, but David thought it would be a good idea to move this topic to here so it’s a tad more immortalized. So here’s the quesiton:
Could anyone knowledgeable fill me in how file health works in
siad ?(I don’t feel like going through the codebase right now). I’d assume that the renter just keeps a list of hosts each file is on, and then the renter node spot checks which hosts are good by periodically downloading random files and checking the hash against the locally stored one. With this setup it’d be very easy to calculate file health on the fly by just doing (maxhosts/hostsWithFIle) for each file recursively. But I also wouldn’t be surprised if it was a bit more sophisticated than this
I’ve just been trying to think of a way to do file health checks without having to waste a bunch of bandwidth and compute for
papyrus(obv manually checking each file would be a terrible idea).