From 7de192bc325cf7f0679c45e0415ec10936736872 Mon Sep 17 00:00:00 2001 From: Jacob Karlsson Date: Sat, 1 Jun 2024 18:28:37 +0200 Subject: [PATCH] Don't throw on missing tangle root --- lib/index.js | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 8832a5a..196d7e3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -512,6 +512,7 @@ function initSet(peer, config) { // prettier-ignore if (!tangle) return cb(null, 0) + if (!tangle.root) return cb(null, 0) // prettier-ignore if (!MsgV4.isMoot(tangle.root)) return cb(Error(`Tangle "${tangleID}" is not a moot`)) const domain = tangle.root.metadata.domain diff --git a/package.json b/package.json index 2eba406..20b6a35 100644 --- a/package.json +++ b/package.json @@ -32,12 +32,12 @@ "@types/pull-stream": "^3.6.7", "bs58": "^5.0.0", "c8": "7", - "pzp-db": "^1.0.1", "pzp-caps": "^1.0.0", + "pzp-db": "^1.0.3", "pzp-keypair": "^1.0.0", "rimraf": "^4.4.0", - "secret-stack": "~8.1.0", "secret-handshake-ext": "0.0.10", + "secret-stack": "~8.1.0", "ssb-box": "^1.0.1", "typescript": "^5.1.3" },