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 440 forks source link

Update stream cache to prevent duplicate chunks being added #3098

Closed MSevey closed 6 years ago

MSevey commented 6 years ago

Current code allowed the same chunk to be added to the Heap but it would not be added to the Map. Updated so chunks can only be added once and updated unit test.

Resolves #3094