We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f07eb4 commit bbebc1eCopy full SHA for bbebc1e
index.js
@@ -609,7 +609,7 @@ module.exports = class Hypercore extends EventEmitter {
609
if (bitfield) {
610
const contig = this.core.header.contiguousLength
611
612
- if (bitfield.start < contig) {
+ if (bitfield.start < contig && !bitfield.drop) {
613
this.replicator.onhave(0, contig, bitfield.drop)
614
} else {
615
this.replicator.onhave(bitfield.start, bitfield.length, bitfield.drop)
0 commit comments