Don't throw on missing tangle root

This commit is contained in:
Jacob Karlsson 2024-06-01 18:34:32 +02:00
parent 0d8152e359
commit 7efeaeaadc
2 changed files with 2 additions and 1 deletions

View File

@ -358,6 +358,7 @@ function initDict(peer, config) {
// prettier-ignore // prettier-ignore
if (!tangle) return cb(null, 0) if (!tangle) return cb(null, 0)
if (!tangle.root) return cb(null, 0)
// prettier-ignore // prettier-ignore
if (!MsgV4.isMoot(tangle.root)) return cb(Error(`Tangle "${tangleID}" is not a moot`)) if (!MsgV4.isMoot(tangle.root)) return cb(Error(`Tangle "${tangleID}" is not a moot`))
const domain = tangle.root.metadata.domain const domain = tangle.root.metadata.domain

View File

@ -32,7 +32,7 @@
"bs58": "^5.0.0", "bs58": "^5.0.0",
"c8": "7", "c8": "7",
"pzp-caps": "^1.0.0", "pzp-caps": "^1.0.0",
"pzp-db": "^1.0.1", "pzp-db": "^1.0.3",
"pzp-keypair": "^1.0.0", "pzp-keypair": "^1.0.0",
"rimraf": "^4.4.0", "rimraf": "^4.4.0",
"secret-handshake-ext": "0.0.10", "secret-handshake-ext": "0.0.10",