hypercore-block-request
Linearly download the blocks in a sparse Hypercore feed.
Installation
$ npm install hypercore-block-request
Usage
const download = // download all blocks until end of feed in strides of 4// in sets of 2 concurrent download requests starting at block 3
API
download(feed, opts, callback)
Linearly download the blocks in a sparse Hypercore feed where opts
can be:
// called every time a range of blocks is downloaded {} // the max number of concurrency download requests concurrency: 4 // describes the stride offset in blocks per download requests stride: 2
License
MIT