Don't throw on missing tangle root

This commit is contained in:
Jacob Karlsson 2024-06-01 18:28:37 +02:00
parent 1ea3f32753
commit 7de192bc32
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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"
},