mirror of https://codeberg.org/pzp/pzp-set.git
Don't throw on missing tangle root
This commit is contained in:
parent
1ea3f32753
commit
7de192bc32
|
@ -512,6 +512,7 @@ function initSet(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
|
||||||
|
|
|
@ -32,12 +32,12 @@
|
||||||
"@types/pull-stream": "^3.6.7",
|
"@types/pull-stream": "^3.6.7",
|
||||||
"bs58": "^5.0.0",
|
"bs58": "^5.0.0",
|
||||||
"c8": "7",
|
"c8": "7",
|
||||||
"pzp-db": "^1.0.1",
|
|
||||||
"pzp-caps": "^1.0.0",
|
"pzp-caps": "^1.0.0",
|
||||||
|
"pzp-db": "^1.0.3",
|
||||||
"pzp-keypair": "^1.0.0",
|
"pzp-keypair": "^1.0.0",
|
||||||
"rimraf": "^4.4.0",
|
"rimraf": "^4.4.0",
|
||||||
"secret-stack": "~8.1.0",
|
|
||||||
"secret-handshake-ext": "0.0.10",
|
"secret-handshake-ext": "0.0.10",
|
||||||
|
"secret-stack": "~8.1.0",
|
||||||
"ssb-box": "^1.0.1",
|
"ssb-box": "^1.0.1",
|
||||||
"typescript": "^5.1.3"
|
"typescript": "^5.1.3"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue