From 9f472c1d01851b44fc478f4cf271d601831ba0f8 Mon Sep 17 00:00:00 2001 From: HDegroote <75906619+HDegroote@users.noreply.github.com> Date: Thu, 19 Sep 2024 09:26:19 +0200 Subject: [PATCH] Unslab announcer record --- lib/announcer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/announcer.js b/lib/announcer.js index f2a67671..ee5c69ca 100644 --- a/lib/announcer.js +++ b/lib/announcer.js @@ -1,6 +1,7 @@ const safetyCatch = require('safety-catch') const c = require('compact-encoding') const Signal = require('signal-promise') +const unslab = require('unslab') const Sleeper = require('./sleeper') const m = require('./messages') const Persistent = require('./persistent') @@ -17,7 +18,7 @@ module.exports = class Announcer { this.relayAddresses = [] this.stopped = false this.suspended = false - this.record = c.encode(m.peer, { publicKey: keyPair.publicKey, relayAddresses: [] }) + this.record = unslab(c.encode(m.peer, { publicKey: keyPair.publicKey, relayAddresses: [] })) this.online = new Signal() this._refreshing = false