autobee 2.5.4 → 2.5.5
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/index.js +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -314,6 +314,12 @@ module.exports = class Autobee extends ReadyResource {
|
|
|
314
314
|
result.writers.push(head.key)
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
// nothing trusted to anchor on: pin the bootstrap so a mirror still
|
|
318
|
+
// has a bootable entrypoint for this room
|
|
319
|
+
if (views.size === 0 && !b4a.equals(this.bootstrap.key, this.local.key)) {
|
|
320
|
+
result.writers.push(this.bootstrap.key)
|
|
321
|
+
}
|
|
322
|
+
|
|
317
323
|
if (all) {
|
|
318
324
|
const [viewCores, systemCores] = await Promise.all([
|
|
319
325
|
this.bee.cores({ local: false }),
|