Skip to content

Commit bbebc1e

Browse files
committed
Guard against drop 0, contig
1 parent 6f07eb4 commit bbebc1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ module.exports = class Hypercore extends EventEmitter {
609609
if (bitfield) {
610610
const contig = this.core.header.contiguousLength
611611

612-
if (bitfield.start < contig) {
612+
if (bitfield.start < contig && !bitfield.drop) {
613613
this.replicator.onhave(0, contig, bitfield.drop)
614614
} else {
615615
this.replicator.onhave(bitfield.start, bitfield.length, bitfield.drop)

0 commit comments

Comments
 (0)