hypercore-protocol / hypercore-next

Hypercore 10 is an append only log with multi-writer primitives built in.
MIT License
150 stars 15 forks source link

Update range indexes before reassigning array elements in replicator #22

Closed chm-diederichs closed 3 years ago

chm-diederichs commented 3 years ago

hyperbee.createReadStream() triggered an error caused by iterating over the RequestPool's ranges due to undefined elements.

This was because the index used to update the range elements on L169 was out of bounds