autobee 2.5.3 → 2.5.4
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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -206,7 +206,7 @@ module.exports = class Autobee extends ReadyResource {
|
|
|
206
206
|
|
|
207
207
|
async _updateAcking() {
|
|
208
208
|
if (this._interrupting) return
|
|
209
|
-
this.setAcking(await this.trusted.isTrusted(this.local.key, this.view))
|
|
209
|
+
this.setAcking(await this.trusted.isTrusted(this.local.key, this._workingView.view))
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
// network free: only a migration needs peers, so ready() awaits the full
|
|
@@ -290,7 +290,7 @@ module.exports = class Autobee extends ReadyResource {
|
|
|
290
290
|
if (local) {
|
|
291
291
|
result.writers.push(this.local.key)
|
|
292
292
|
|
|
293
|
-
if (await this.trusted.isTrusted(this.local.key, this.view)) {
|
|
293
|
+
if (await this.trusted.isTrusted(this.local.key, this._workingView.view)) {
|
|
294
294
|
const localViews = await this.writers.localWriter.views()
|
|
295
295
|
for (const { key } of localViews) {
|
|
296
296
|
views.set(b4a.toString(key, 'hex'), key)
|