Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: check that peers existing doesn't break retrieving pending blobs
Blobs get inserted into sled with `3u8` as their first byte. Peers have a prefix byte of `4u8`. However, the `get_pending_blobs` function uses an open range to query the store, just like `get_peers` used to do. This means we can cause a deserialization error when querying pending blobs, simply by inserting a peer into the store. The open range query will return the peer as a byte string and try to deserialize it into a `Blob` struct.
- Loading branch information