NebulousLabs / Sia

Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
https://sia.tech
MIT License
2.71k stars 442 forks source link

Siac renter download rolling transfer speed and better units #3162

Open ChrisSchinnerl opened 5 years ago

ChrisSchinnerl commented 5 years ago

Resolves #3148 Resolves #3147

demo

ChrisSchinnerl commented 5 years ago

Theoretically a Ybps is 2^80 bps which is too large for the uint64 of bandwidthUnit but you can never be future proof enough :P

ChrisSchinnerl commented 5 years ago

Something that still bothers me is the way we update the progress of the download. We only update it whenever a chunk is complete instead of when a piece is complete. That means that downloading a 40MB file will be stuck at 0% until the chunk is downloaded an then go right to 100%.