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.
Files changed (2) hide show
  1. package/index.js +6 -0
  2. 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 }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autobee",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "Bee based autobase",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Holepunch Inc.",