hypercore 10.35.0 → 10.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core.js +0 -3
- package/package.json +1 -1
package/lib/core.js
CHANGED
|
@@ -150,9 +150,6 @@ module.exports = class Core {
|
|
|
150
150
|
await blocks.clear()
|
|
151
151
|
await bitfield.clear()
|
|
152
152
|
entries = []
|
|
153
|
-
} else if (bitfield.resumed && header.tree.length === 0) {
|
|
154
|
-
// If this was an old bitfield, reset it since it loads based on disk size atm (TODO: change that)
|
|
155
|
-
await bitfield.clear()
|
|
156
153
|
}
|
|
157
154
|
|
|
158
155
|
// compat from earlier version that do not store contig length
|