dont add deleted msgs to the DBTangle

This commit is contained in:
Andre Staltz 2023-04-18 13:11:54 +03:00
parent 3f7d299559
commit 188d37fefc
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ class DBTangle extends FeedV1.Tangle {
constructor(rootHash, recordsIter) { constructor(rootHash, recordsIter) {
super(rootHash) super(rootHash)
for (const rec of recordsIter) { for (const rec of recordsIter) {
if (!rec.msg) continue
this.add(rec.hash, rec.msg) this.add(rec.hash, rec.msg)
} }
} }