mirror of https://codeberg.org/pzp/pzp-dict.git
fix minRequiredDepth when tangle is unknown
This commit is contained in:
parent
7fb5a0f107
commit
6707df0ee4
|
@ -352,7 +352,7 @@ function initDict(peer, config) {
|
|||
const tangle = peer.db.getTangle(tangleID)
|
||||
|
||||
// prettier-ignore
|
||||
if (!tangle || tangle.size === 0) throw new Error(`Tangle "${tangleID}" is locally unknown`)
|
||||
if (!tangle || tangle.size === 0) return 0
|
||||
// prettier-ignore
|
||||
if (!MsgV4.isMoot(tangle.root)) throw new Error(`Tangle "${tangleID}" is not a moot`)
|
||||
const domain = tangle.root.metadata.domain
|
||||
|
|
Loading…
Reference in New Issue