mirror of https://codeberg.org/pzp/pzp-dict.git
Don't throw on missing tangle root
This commit is contained in:
parent
0d8152e359
commit
7efeaeaadc
|
@ -358,6 +358,7 @@ function initDict(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
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
"bs58": "^5.0.0",
|
||||
"c8": "7",
|
||||
"pzp-caps": "^1.0.0",
|
||||
"pzp-db": "^1.0.1",
|
||||
"pzp-db": "^1.0.3",
|
||||
"pzp-keypair": "^1.0.0",
|
||||
"rimraf": "^4.4.0",
|
||||
"secret-handshake-ext": "0.0.10",
|
||||
|
|
Loading…
Reference in New Issue