JoystreamClassic / extension-cpp

C++ libtorrent extension library
MIT License
0 stars 3 forks source link

better nextPiecePicker #29

Closed mnaamani closed 7 years ago

mnaamani commented 7 years ago

Original fix in https://github.com/JoyStream/extension-cpp/pull/25 was not enough.

Cleaner implementation and initialization that better handles an edge case where piece 0 is NOT unassigned and has higher priority than assigned pieces.