hypercore 11.0.32 → 11.0.33
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/session-state.js +1 -2
- package/package.json +1 -1
package/lib/session-state.js
CHANGED
|
@@ -630,8 +630,6 @@ module.exports = class SessionState {
|
|
|
630
630
|
await this.mutex.lock()
|
|
631
631
|
|
|
632
632
|
try {
|
|
633
|
-
if (length < this.length) throw INVALID_OPERATION('Can not catchup back in time')
|
|
634
|
-
|
|
635
633
|
const origLength = this.length
|
|
636
634
|
|
|
637
635
|
let sharedLength = 0
|
|
@@ -754,6 +752,7 @@ module.exports = class SessionState {
|
|
|
754
752
|
}
|
|
755
753
|
|
|
756
754
|
for (let i = 0; i < blocks.length; i++) {
|
|
755
|
+
assert(blocks[i] !== null, 'has block')
|
|
757
756
|
tx.putBlock(i + treeLength, blocks[i])
|
|
758
757
|
}
|
|
759
758
|
|